Choose the right framework

- [Instructor] Spring Web MVC is a well-known…web tier development framework,…but did you know that it can be used to create RESTful APIs?…This has been possible since its inception…but implementation resulted in controller classes…that were messy and riddled with annotations.…That changed in Spring Web MVC version four,…with the introduction of the @RestController annotation.…Annotating a class with @RestController…tells Spring Web MVC that this class follows…RESTful web service stereotypical behavior.…

A RestController class mediates between…web requests and the internals of the application.…It is responsible for directing requests…to the appropriate services,…then sending a response back to the client.…In Spring Data REST, the framework itself…mediates between web requests…and the persistent domain model.…So what are the reasons you would choose to…expose an API via a REST Controller?…One reason is that your application…is not using Spring Data JPA…or any other Spring Data solution.…

Another is that your API launches an…

Resume Transcript Auto-Scroll

Author

Released

12/20/2016

Turbocharge your back-end Java RESTful API development with Spring Boot and Spring Data technologies. This course is intended for experienced Java developers who want to rapidly build microservices that connect with relational databases via the Java Persistence API (JPA). Here, Mary Ellen Bowman walks you through a step-by-step process for building a microservice with an exposed RESTful API featuring HATEOAS, paging, sorting, and CrudRepository interfaces. Learn about technologies such as Spring Boot, Spring Data JPA, Spring Data REST, and Spring Web MVC @RestController, and see how they all come together into smart and elegant solutions. As a wrap-up, Mary Ellen guides developers in choosing between the Spring Data REST and REST controllers when exposing more complex services.