Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.35 KB

File metadata and controls

35 lines (20 loc) · 1.35 KB

A skeleton project using Spring 4.x, Spring Boot, SpringMVC, Spring AOP, and Swagger.

This is a work in progress, but starts to illustrate the basics of Spring 4.x, using Spring MVC.

The package structure is not what I consider ideal. I would typically have two different models, one to represent the web model and one to represent the persistence model. Along with a service that is not bound to Spring or SpringMVC, such that the API and its implementation is not bound to the web service bindings, but more on that later.

TO RUN:

> mvn clean package
> java -jar target/socialstream-1.0-SNAPSHOT.jar
  • API Documentation:
http://localhost:8080/swagger/index.html

References

  1. Building a Hypermedia-Driven RESTful Web Service
  2. SpringMVC full config
  3. Spring HATEOAS
  4. Swagger + Spring Boot
  5. How To: Embedded Servlet Containers

References not used in this example, but useful

  1. Creating Asynchronous Methods