Mastering Spring Boot 2.0
上QQ阅读APP看书,第一时间看更新

Customizing Spring Boot

Spring Boot offers you full control over auto-configuration. You can control what Spring Boot does. There are several options for customizing Spring Boot configuration. They are as follows:

  • You can customize by setting some of Spring Boot's properties in the properties or YAML files
  • Also, you can define certain beans yourself so Spring Boot won't use the default
  • You can disable some autoconfiguration explicitly
  • Change dependencies

Let's see these four points in detail, and how to use them to customize Spring Boot auto-configuration in your Spring application.