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.

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.