From the documentation at https://docs.spring.io/spring-boot/reference/features/logging.html#features.logging.console-output :
Answer from abaghel on Stack Overflowyou can also specify
debug=truein yourapplication.properties.When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate, and Spring Boot) are configured to output more information.
java - What Does The Spring Boot "debug" Config Property Set? - Stack Overflow
Spring Boot 3.3.0 Native debug=true in application.properties No effect
java - Spring boot properties difference between `debug=true` and `logging.level.root=debug` - Stack Overflow
java - How to debug Spring Boot autoconfiguration - Stack Overflow
Videos
Adding debug=true to the application.properties or
debug: true in the application.yml, file should help. You'll get more detailed logging.
Generally, if you want to see more fine-grained log messages from all members of a given package, you can set that by adding a line such as:
logging.level.<package_name>=<LOGGING_LEVEL>
for example:
logging.level.org.springframework.context=DEBUG
These log messages may be helpful in finding the core of the problem (in this case why a given exception was thrown).
@Joe Doe's answer gives much more details, but in brief:
Add below in your application.yml:
debug: true
Sometimes I missed the required annotation or use the annotation wrongly to make it work. Is there any way to troubleshoot it? Besides copying from working example?