相关疑难解决方法(0)

如何在运行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);
    }
}
Run Code Online (Sandbox Code Playgroud)

为了回应Darren在下面的回答,我按如下方式修改了我的properties.yml文件并生成了自动配置报告,

debug: true
spring:
  application:
    name: xxxMyLoaderApp
  cloud:
    config:
      uri: http://my-host.address.com:8761/config
Run Code Online (Sandbox Code Playgroud)

java intellij-idea spring-boot

32
推荐指数
4
解决办法
4万
查看次数

标签 统计

intellij-idea ×1

java ×1

spring-boot ×1