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

Viewed 95055

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
5 Answers

In Run/Debug Configurations check "Enable debug output"

enter image description here

There are lots of properties you can refer to in common-application-properties, when configuring the properties.

# ----------------------------------------
# CORE PROPERTIES
# ----------------------------------------
debug=false # Enable debug logs.
trace=false # Enable trace logs.

Set logging.level.org.springframework.boot.autoconfigure property to DEBUG in your application's YAML/settings file. This would be enough.

As I leant on it at Baeldung lecture, the debug report on autoconfigured beans displayed on Console by putting below line in "application.properties" file:

logging.level.org.springframework.boot.autoconfigure=DEBUG

enter image description here

Related