1、spring-boot-autoconfigure-2.1.7.BUILD-SNAPSHOT-sources.jar

springboot自动配置

 

2、如何查看项目中启动和未启动的自动配置:

  application.properties

    debug=true

springboot自动配置

3、关闭不必要的自动配置

  java注解:

    @EnableAutoConfiguration(exclude = {org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration})

  配置文件:

    spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration

 4、附录、web自动配置

springboot自动配置

相关文章:

  • 2022-12-23
  • 2020-03-28
  • 2022-01-02
  • 2021-11-16
  • 2021-12-21
  • 2020-05-30
猜你喜欢
  • 2021-07-04
  • 2021-06-14
  • 2021-07-06
  • 2021-08-02
  • 2021-10-09
相关资源
相似解决方案