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

robbie70 :

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
Darren Forsythe :

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=425577&siteId=1