Spring boot quick build micro service framework detailed tutorial
preface:
Springboot appears to simplify the creation, running, debugging and deployment of spring applications. Using it, you can focus on the development of spring applications without paying too much attention to the configuration of XML.
In short, it provides a bunch of dependency packaging, and has solved the dependency problem according to usage habits - habits are greater than conventions.
Spring boot uses Tomcat as the server by default and logback to provide logging.
Main advantages of spring boot:
Technology stack:
1. Building projects with maven
1.1 production of basic projects through spring initializr tools
By accessing: http://start.spring.io/ Quickly create a spring boot service framework.
After the service is started, access http://localhost:8080/index , you can see the page output Hello world!.
After adding the above code, start the spring boot program and visit: http://localhost:8080/swagger -ui. html 。
Source address: https://github.com/jaycekon/SpringBootDemo