Debugging Auto-Configuration
Explore how to debug Spring Boot auto-configuration using application properties, command-line switches, and actuator endpoints. Understand the auto-configuration report sections to troubleshoot which configurations are applied or excluded.
Auto-configuration report
Upon starting the application, we don’t get a lot of information of how Spring Boot decided to compose our applications through auto-configuration.
For debugging purposes, it’s essential to know which auto-configurations are applied to the application.
The following are three ways in which Spring Boot generates the auto-configuration report.
1. Application property approach
Set below property in application.properties or application.yml.
debug=true...