spring boot interview summary

 

  • 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
  1. spring-boot-starter-web and web developers need to embed tomcat servlet and jsp support
  2. spring-boot-starter-data-jpa database support
  3. spring-boot-starter-data-redis redis database support
  4. spring-boot-starter-data-solr solr支持
  5. 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.

Published 107 original articles · won praise 184 · views 210 000 +

Guess you like

Origin blog.csdn.net/qq_22172133/article/details/84204172