Auto Configuration Report Spring Boot. This file lists all the auto configuration classes that should be enabled under the EnableAutoConfiguration key A few of the important auto configurations are listed below orgspringframeworkbootautoconfigureEnableAutoConfiguration=\ orgspringframeworkbootautoconfigureaopAopAutoConfiguration\ orgspringframeworkbootautoconfigureMessageSourceAutoConfiguration\ orgspringframeworkbootautoconfigurePropertyPlaceholderAutoConfiguration\ orgspringframeworkbootautoconfigure.

How Spring Boot Auto Configuration Works Spring Boot Auto Configuration auto configuration report spring boot
How Spring Boot Auto Configuration Works Spring Boot Auto Configuration from techrocking.com

Need of AutoConfigurationDisable AutoConfiguration ClassesDebugging AutoConfigurationSpringbased application requires a lot of configuration When we use Spring MVC we need to configure dispatcher servlet view resolver web jarsamong other things The following code shows typical configuration of a dispatcher servlet in a web application Similarly when we use Hibernate/ JPA we need to configure datasource a transaction manager an entity manager factory among a host of other things Configuring datasource Configuring entity manager factory Configuring transaction manager We can also disable the specific autoconfiguration classes if we do not want to be applied We use the excludeattribute of the annotation @EnableAutoConfiguration to disable the autoconfiguration classes For example We can use the attribute excludeName of the annotation @EnableAutoConfiguration and specify the qualified name of the class if the class is not on the class path We can exclude any number of autoconfiguration classes by using the property springautoconfigureexclude We can find more information about autoconfiguration by using the following two ways 1 Turning on debug logging 2 Using Spring Boot Actuator Turning on debug logging We can debug logging by adding a property in the applicationproperties file Let&#39s implement the debug logging in the above example Open the applicationpropertiesfile and add the following property Now restart the application We see that an autoconfiguration report printed in the log The report includes all the classes that are autoconfigured It is divided into two parts positive matches annegative matches as shown in the following figure Positive matches Negative matches Spring Boot Actuator We can also debug autoconfiguration by using Actuator in the project We will also add in HAL Browserto make things easy It shows the details of all the beans that are autoconfigured and those are not Let&#39s create an example of Spring Boot Actuator Step 1 Open Spring Initializr http//startspringio Step 2.

Spring Boot Autoconfiguration javatpoint

The see this clearly we can enable autoconfiguration report for our Spring Boot application Set DEBUG for springframework logging level in the applicationproperties file logginglevelorgspringframework DEBUG Once you run the application you may notice similar output in the console.

Using Spring Boot's autoconfiguration report Learning

The autoconfiguration report contains information about the classes that Spring Boot found on the classpath and configured automatically It also shows information about classes that are known to Spring Boot but were not found on the classpath And because we&#39ve set debug=true then we see it in our output.

How Spring Boot Auto Configuration Works Spring Boot Auto Configuration

Configuration Dariawan Spring Boot Auto

What is Spring Boot Auto Configuration? – Spring Boot Tutorial

Display AutoConfiguration Report in Spring Boot Baeldung

Using Spring Boot&#39s autoconfiguration report Overriding Boot with alternate beans or properties Writing a custom health check to ping ActiveMQ Adding customized app data to /info Creating custom metrics to track the message traffic Tweaking management ports address and paths Restricting access only to JMX Connecting to the app via JConsole and jmxterm.