July 21, 2020

Debugging Auto Configuration in spring boot application


Debugging Auto Configuration


There are two approaches you can debug and discover more information about auto 
configuration.

1. Using Spring Boot Actuator

2. Turning on debug logging

You can switch on debug logging by including a simple property value to 
application.properties.

In this example, we are switching on Debug level for all logging from org.springframework 

package (and sub packages).

logging.level.org.springframework: DEBUG

When the application is restarted, you will view an auto configuration report printed in the log.

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments