CONDITIONS EVALUATION REPORT

CONDITIONS EVALUATION REPORT

The spring boot project shows: CONDITIONS EVALUATION REPORT

Insert image description here
Insert image description here

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>]
  1. Prompt that type [java.lang.String] cannot be converted to type [java.util.Map<String, LogLevel>]#
  2. 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:
Insert image description here

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.

Guess you like

Origin blog.csdn.net/weixin_44021888/article/details/100740043