简体   繁体   中英

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?

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.

Try this configuration:

logging:
  level:
    org.springframework.beans: TRACE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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