Developing a RESTful service – the legacy approach

This example will review the traditional RESTful service development before jumping deep into Spring Boot.

STS will be used to develop this REST/JSON service.

Note

The full source code of this example is available as the legacyrest project in the code files of this book.

The following are the steps to develop the first RESTful service:

  1. Start STS and set a workspace of choice for this project.
  2. Navigate to File | New | Project.
  3. Select Spring Legacy Project as shown in the following screenshot and click on Next:
    Developing a RESTful service – the legacy approach
  4. Select Spring MVC Project as shown in the following diagram and click on Next:
  5. Select a top-level ...

Get Spring: Developing Java Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.