- What is springboot
To simplify the development process and initial set up spring application, using a specific way to configure (properties file or yml). Create a separate spring reference the main method of operation; embedded Tomcat without deploying war file; maven simplify configuration; add the corresponding function automatically configured spring starter automated configuration.
- What are commonly used starter springboot
- spring-boot-starter-web and web developers need to embed tomcat servlet and jsp support
- spring-boot-starter-data-jpa database support
- spring-boot-starter-data-redis redis database support
- spring-boot-starter-data-solr solr支持
- mybatis-spring-boot-starter third mybatis integrated starter
- Automatic configuration of principle springboot
In the spring or @EnableAutoConfiguration added @SpringBootApplication main process program. Maven will automatically go read spring.factories file for each starter in the configuration file needs to be created all spring container bean.
- springboot way to read the configuration file
springboot default configuration file to read application.properties or application.yml.
- How springboot [add] automatic restart function to modify the code
Add developer toolset ===== spring-boot-devtools.