如何在运行Spring Boot应用程序时显示自动配置报告
启动ApplicationContext时出错。 要显示自动配置报告,请在启用“debug”的情况下重新运行应用程序
我尝试运行Spring Boot应用程序时收到上述消息。
有谁知道如何在启用’debug’的情况下重新运行应用程序?
我在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
在properties / yml中设置debug = true
或debug: true
。 它也可以作为参数传递--debug
。
在运行/调试配置中选中“启用调试输出”
在配置属性时 ,可以在common-application-properties中引用许多属性。
# ---------------------------------------- # CORE PROPERTIES # ---------------------------------------- debug=false # Enable debug logs. trace=false # Enable trace logs.
- 如何在IntelliJ Idea中禁用Gradle守护进程?
- 如何在Intellij中定义运行junit测试的顺序?
- IntelliJ IDEA 2016.3.4:exception构建过程终止
- Hello World不在IntelliJ Idea中运行
- 不推荐使用’java.io.ObjectOutputStream’ – Intellij IDEA中的错误
- 在IntelliJ Idea中查看已使用Java类的来源
- 我可以自动重构整个java项目并将大写方法参数重命名为小写吗?
- IntelliJ 2018.1首选项中的“使用’ – release’选项”是什么?
- 从命令行运行jar时出现MessageBodyProviderNotFoundException