CONDITIONSEVALUATIONREPORT(条件评估报告)
记录⼀个⼩问题,相信有很多⽤spring boot开发的⼩伙伴都出现过如图⼀的错误。因为先⼊为主的因素导致在⽇志级别为DEBUG级别时,打印了如例2所⽰的⽇志,以为是⼀个报错信息,资讯阅读⽇志发现是⼀下系列的匹配流程。
这边简单记录⼀下解决的⽅案,如果在没有更换默认⽇志的情况下,
可以在l配置:
logging:
level:
长春世界风景园
org:
环保建议书springframework:
boot:
autoconfigure: error ###可以是info或者error
姿态近义词
彩色沙林
同样可以在application.properties中配置
logging.level.springframework.boot.autoconfigure=error #可以是info或者error
如果更换了⽇志框架,且恰好为log4j,则可以在log4j.properties中添加⼀个配置:
log4j.logger.springframework.boot.autoconfigure=ERROR
例1:
**************************************白令海峡海底隧道
APPLICATION FAILED TO START
***************************************
例2:
============================
CONDITIONS EVALUATION REPORT
古人名字============================
Positive matches:
-----------------
萧何是谁
AopAutoConfiguration matched:
- @ConditionalOnProperty (spring.aop.auto=true) matched (OnPropertyCondition)
AopAutoConfiguration.ClassProxyingConfiguration matched:
游牧生活
- @ConditionalOnMissingClass did not find unwanted class 'org.aspectj.weaver.Advice' (OnClassCondition)
- @ConditionalOnProperty (spring.aop.proxy-target-class=true) matched (OnPropertyCondition)
DataSourceAutoConfiguration matched:
- @ConditionalOnClass found required class 'javax.sql.DataSource',
'org.springframework.bedded.EmbeddedDatabaType' (OnClassCondition)
- @ConditionalOnMissingBean (types: io.r2dbc.spi.ConnectionFactory; SearchStrategy: all) did not find any beans (OnBeanCondition) DataSourceConfiguration.Generic matched:
- @ConditionalOnProperty (pe) matched (OnPropertyCondition)