How does Spring Boot auto-configuration work, and how do you debug it?
Auto-configuration applies configuration when its conditions match, such as required classes, properties, or missing beans. Supplying your own bean can make the corresponding default configuration back off. Start with the condition evaluation report, enabled with --debug, to see which conditions matched before adding exclusions or duplicating configuration.