Spring Boot offers a fast way to build applications. It looks at your classpath and at beans you have configured, makes reasonable assumptions about what you’re missing, and adds it. With Spring Boot you can focus more on business features and less on infrastructure.
Build with Maven
directory structure
pom.xml
1 | <?xml version="1.0" encoding="UTF-8"?> |
execute
1 | mvn package |
Create a simple web application
create a web controller
1 | package hello; |
create an Application class
1 | package hello; |
result
Add Tests
mock the HTTP request cycle
a simple unit test
1 | package hello; |
a very simple full-stack integration test
1 | package hello; |