Supplementary to the previous springboot

Spring Cloud primary

A, Spring Boot Review

 

1 What is Spring Boot?

 
Spring Boot is generated on the basis of the Spring (precisely, on the basis of Spring4.0 version of the above),
Where the "Boot" means "guide", intended to simplify development model, developers can quickly be developed based on
Spring applications. Spring Boot comprising an embedded web container. We develop web applications do not need a war
Deploy the package into a web container, but as a jar package, according to the configuration web server is loaded at startup.
 

2 In the absence of development projects during Spring Boot using what?

 
2.1 there are a lot of xml file in the project configuration is quite cumbersome
 
2.2 configuration problems when integrating third-party frameworks
 
2.3 inefficient development and deployment efficiency efficiency 3 Spring Boot solve what?
3.1Spring Boot configuration so simple
3.2Spring Boot coding and single
3.3Spring Boot makes deployment simple
3.4Spring Boot makes monitoring simple
 

Two, Spring Boot quickly build project

 

1 Open Spring Boot official website

 
https://projects.spring.io/spring-boot/
https://start.spring.io/ build Spring Boot page

 

 

2 Use Spring Boot official website building project

 
2.1 will automatically help us to generate startup class
 
2.2 will automatically generate a directory to store static resources, but also to generate global configuration file
 
2.3 automatically generates test code, of course, only one structure.
 
2.4Spring Boot official recommended jdk version 1.8 or higher
 

3 building project directory structure

 

 

Guess you like

Origin www.cnblogs.com/wq-9/p/11488497.html