简体   繁体   English

Java Spring Boot bean 加载的详细日志记录?

[英]Verbose logging of Java Spring Boot beans loading?

Is it possible to somehow setup (preferable using YAML configuration files) a Java Spring Boot application to log in details (verbose) which beans it finds and what might cause a bean to not be loaded?是否有可能以某种方式设置(最好使用 YAML 配置文件)Java Spring Boot 应用程序以登录详细信息(详细)它找到哪些 bean 以及可能导致 bean 未加载的原因?

I have a Java Spring Boot 4 application that does not get to the next statement after my initially SpringApplication.run(MyApplication.class, args) which means that it is stuck during initialization of the beans that it was supposed to find/lookup using annotations.我有一个 Java Spring Boot 4 应用程序在我最初的SpringApplication.run(MyApplication.class, args)之后没有进入下一个语句SpringApplication.run(MyApplication.class, args)这意味着它在应该使用注释查找/查找的 bean 的初始化过程中被卡住.

Try this configuration:试试这个配置:

logging:
  level:
    org.springframework.beans: TRACE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM