CONDITIONSEVALUATIONREPORT(条件评估报告)
记录⼀个⼩问题,相信有很多⽤spring boot开发的⼩伙伴都出现过如图⼀的错误。因为先⼊为主的因素导致在⽇志级别为DEBUG级别时,打印了如例2所⽰的⽇志,以为是⼀个报错信息,资讯阅读⽇志发现是⼀下系列的匹配流程。
这边简单记录⼀下解决的⽅案,如果在没有更换默认⽇志的情况下,
可以在l配置:
logging:
level:
org:
springframework:
boot:
autoconfigure: error  ###可以是info或者error
同样可以在application.properties中配置
springframework.boot.autoconfigure=error #可以是info或者error
如果更换了⽇志框架,且恰好为log4j,则可以在log4j.properties中添加⼀个配置:
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)springboot aop
DataSourceAutoConfiguration matched:
- @ConditionalOnClass found required classes 'javax.sql.DataSource',
'org.springframework.bedded.EmbeddedDatabaseType' (OnClassCondition)
- @ConditionalOnMissingBean (types: io.r2dbc.spi.ConnectionFactory; SearchStrategy: all) did not find any beans (OnBeanCondition) DataSourceConfiguration.Generic matched:
- @ConditionalOnProperty (pe) matched (OnPropertyCondition)

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。