CONDITIONS EVALUATION REPORT
The spring boot project shows: CONDITIONS EVALUATION REPORT
Reason: The log is configured with the level attribute
Solution:
Add the following to the configuration file application.yml or application.properties file:
logging.level.org.springframework.boot.autoconfigure: error
If logging.level must be set to debug, we can take a good look at the error message:
Error analysis:
No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, org.springframework.boot.logging.LogLevel>]
- Prompt that type [java.lang.String] cannot be converted to type [java.util.Map<String, LogLevel>]#
- If you think about it, it is indeed mismatched. The format required by spring is Map<String,LogLevel>. We directly lost a debug, which was naturally regarded as a string, so we just need to configure a Map format according to its format.
Solution:
Configure the form of map key-value pairs:
As long as it is in the A: level format, it can run successfully. The reason why com.gsl.cache is configured here is because I need to print sql logs, so it is the package name of the project.