Skip to content
Advertisement

How to display auto-configuration report when running a Spring Boot application

Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled

I am getting the above message when I try to run my Spring Boot application.

Does anyone know how I can re-run the application with ‘debug’ enabled?

I am running the application in Intellij (version 2016.1.2)

My runner class looks like the following,

@Slf4j
@EnableIntegration
@EnableLoaderApplication
@SpringBootApplication
public class LoaderApplicaton {

    public static void main(final String[] args) {
        SpringApplication.run(LoaderApplicaton.class, args);
    }
}

In response to Darren’s answer below, I amended my properties.yml file as follows and that produced the auto-configuration report,

debug: true
spring:
  application:
    name: xxxMyLoaderApp
  cloud:
    config:
      uri: http://my-host.address.com:8761/config

Advertisement

Answer

Set debug = true or debug: true in your properties/yml. It can also be passed as an argument --debug.

There are further details available in the Spring Boot documentation on what the debug flag does.

https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-logging-console-output

Advertisement