[英]How to display auto-configuration report when running a Spring Boot application
啟動 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
在您的屬性/yml 中設置debug = true
或debug: true
。 它也可以作為參數傳遞--debug
。
Spring Boot 文檔中提供了有關調試標志功能的更多詳細信息。
在配置屬性時,您可以在common-application-properties 中引用許多屬性。
# ----------------------------------------
# CORE PROPERTIES
# ----------------------------------------
debug=false # Enable debug logs.
trace=false # Enable trace logs.
在應用程序的 YAML/設置文件中將logging.level.org.springframework.boot.autoconfigure
屬性設置為DEBUG
。 這樣就足夠了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.