如何从Spring Boot应用程序的控制台中排除条件评估报告? [英] How can I exclude the conditions evaluation report from the console of a Spring boot application?

查看:658
本文介绍了如何从Spring Boot应用程序的控制台中排除条件评估报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Spring Boot应用程序时,我会在控制台日志中获得条件评估报告.

When I run my Spring boot application, I get the conditions evaluation report in my console logs.

如何在Spring Boot中从控制台日志中禁用或排除此报告?

How can I disable or exclude this report from my console logs in Spring boot?

============================
CONDITIONS EVALUATION REPORT
============================


Positive matches:
-----------------

   AopAutoConfiguration matched:
      - @ConditionalOnClass found required classes 'org.springframework.context.annotation.EnableAspectJAutoProxy', 'org.aspectj.lang.annotation.Aspect', 'org.aspectj.lang.reflect.Advice', 'org.aspectj.weaver.AnnotatedElement'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)
      - @ConditionalOnProperty (spring.aop.auto=true) matched (OnPropertyCondition)

   AopAutoConfiguration.CglibAutoProxyConfiguration matched:
      - @ConditionalOnProperty (spring.aop.proxy-target-class=true) matched (OnPropertyCondition)

   CacheAutoConfiguration matched:
      - @ConditionalOnClass found required class 'org.springframework.cache.CacheManager'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)
      - @ConditionalOnBean (types: org.springframework.cache.interceptor.CacheAspectSupport; SearchStrategy: all) found bean 'cacheInterceptor'; @ConditionalOnMissingBean (names: cacheResolver; types: org.springframework.cache.CacheManager; SearchStrategy: all) did not find any beans (OnBeanCondition)

...

推荐答案

您可以通过更改org.springframework.boot.autconfigure的日志级别来做到这一点.例如,通过在application.properties中添加以下行:

You can do this by changing the log level of org.springframework.boot.autconfigure. For example by adding the following line within application.properties:

logging.level.org.springframework.boot.autoconfigure=ERROR

这篇关于如何从Spring Boot应用程序的控制台中排除条件评估报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆