Skip to content

kenriggio/spring-boot-rest-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Skeleton Spring Boot Rest Service with example Aspects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages