如何在运行Spring Boot应用程序时显示自动配置报告 [英] How to display auto-configuration report when running a Spring Boot application
问题描述
启动ApplicationContext时出错。要显示自动配置
报告,请在启用调试的情况下重新运行您的应用程序
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled
我收到上述消息当我尝试运行我的Spring Boot应用程序时。
I am getting the above message when I try to run my Spring Boot application.
有没有人知道如何在启用'debug'的情况下重新运行应用程序?
Does anyone know how I can re-run the application with 'debug' enabled?
我在Intellij中运行应用程序(版本2016.1.2)
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);
}
}
为了回应Darren在下面的回答,我修改了我的属性.yml文件如下,并生成自动配置报告,
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
推荐答案
设置 debug = true
或属性/ yml中的 debug:true
。它也可以作为参数传递 - debug
。
Set debug = true
or debug: true
in your properties/yml. It can also be passed as an argument --debug
.
这篇关于如何在运行Spring Boot应用程序时显示自动配置报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!