A simple REST API built on Java Spring with Java 17, Project Lombok, and Spring Data JPA.
This can be used as the back end for a client side dynamic website.
A web server is spun up and listens for incoming HTTP requests. A dispatcherServlet handles all HTTP requests and
responses, sending requests to handlers, in this case the classes with @Controller annotations whos methods have @RequestMapping annotations.
Spring REST API is different from a strict Spring MVC app as there is no integrated front end here. Spring MVC provides server side dynamic web page generatio through JSP. Because this REST service is still architectred in an MVC manner, the "view" here is a JSON response.
- Spring Web MVC: docs on how Spring MVC works.
- Repository Pattern