启动 ApplicationContext 时出错。要显示自动配置报告,请在启用“调试”的情况下重新运行您的应用程序
当我尝试运行 Spring Boot 应用程序时收到上述消息。
有谁知道如何在启用“调试”的情况下重新运行应用程序?
我在 Intellij(版本 2016.1.2)中运行应用程序
我的亚军类如下所示,
@Slf4j
@EnableIntegration
@EnableLoaderApplication
@SpringBootApplication
public class LoaderApplicaton {
public static void main(final String[] args) {
SpringApplication.run(LoaderApplicaton.class, args);
}
}
为了回应 Darren 在下面的回答,我修改了我的 properties.yml 文件,并生成了自动配置报告,
debug: true
spring:
application:
name: xxxMyLoaderApp
cloud:
config:
uri: http://my-host.address.com:8761/config
原文由 robbie70 发布,翻译遵循 CC BY-SA 4.0 许可协议
在您的属性/yml 中设置
debug = true
或debug: true
。它也可以作为参数传递--debug
。Spring Boot 文档中提供了有关调试标志功能的更多详细信息。
https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-logging-console-output