启动springboot项⽬报”CONDITIONSEVALUATIONREPORT“
今天给我的springboot项⽬的最后⼀步添加⽇志之后,⽇志⽂件⾥输出:
2020-04-0315:12:13[DEBUG](ConditionEvaluationReportLoggingListener)
============================
CONDITIONS EVALUATION REPORT
============================
Positive matches:
-----------------
CodecsAutoConfiguration matched:
-@ConditionalOnClass found required class'org.dec.CodecConfigurer'(OnClassCondition)
王小奇CodecsAutoConfiguration.JacksonCodecConfiguration matched:
-@ConditionalOnClass found required class'com.fasterxml.jackson.databind.ObjectMapper'(OnClassCondition)
CodecsAutoConfiguration.JacksonCodecConfiguration#jacksonCodecCustomizer matched:
-@ConditionalOnBean(types: com.fasterxml.jackson.databind.ObjectMapper; SearchStrategy: all) found bean 'jacksonObjectMapper'(OnBeanConditi on)
DispatcherServletAutoConfiguration matched:
-@ConditionalOnClass found required class'org.springframework.web.rvlet.DispatcherServlet'(OnClassCondition)卤水鸭头
家长代表发言稿- found ConfigurableWebEnvironment (OnWebApplicationCondition)
DispatcherServletAutoConfiguration.DispatcherServletConfiguration matched:
-@ConditionalOnClass found required class'javax.rvlet.ServletRegistration'(OnClassCondition)
- Default DispatcherServlet did not find dispatcher rvlet beans (DispatcherServletAutoConfiguration.DefaultDispatcherServletCondition)
DispatcherServletAutoConfiguration.DispatcherServletRegistrationConfiguration matched:
-@ConditionalOnClass found required class'javax.rvlet.ServletRegistration'(OnClassCondition)
- DispatcherServlet Registration did not find rvlet registration bean (DispatcherServletAutoConfiguration.DispatcherServletRegistrationCondition)
DispatcherServletAutoConfiguration.DispatcherServletRegistrationConfiguration#dispatcherServletRegistration matched: -@ConditionalOnBean(names: dispatcherServlet; types: org.springframework.web.rvlet.DispatcherServlet; SearchStrategy: all) found bean 'dispatc herServlet'(OnBeanCondition)
EmbeddedWebServerFactoryCustomizerAutoConfiguration matched:
-@ConditionalOnWebApplication(required) found ConfigurableWebEnvironment (OnWebApplicationCondition)
西瓜什么时候种
瑞士洛桑EmbeddedWebServerFactoryCustomizerAutoConfiguration.TomcatWebServerFactoryCustomizerConfiguration matched: -@ConditionalOnClass found required class 'org.apache.catalina.startup.Tomcat','UpgradeProtocol'(OnClassCondition)
ErrorMvcAutoConfiguration matched:
-@ConditionalOnClass found required class 'javax.rvlet.Servlet','org.springframework.web.rvlet.DispatcherServlet'(OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition)
ErrorMvcAutoConfiguration#basicErrorController matched:
厌烦的英文-@ConditionalOnMissingBean(types: org.springframework.boot.ErrorController; SearchStrategy: current) did not find any beans (On BeanCondition)
ErrorMvcAutoConfiguration#errorAttributes matched:
-@ConditionalOnMissingBean(types: org.springframework.boot.ErrorAttributes; SearchStrategy: current) did not find any beans (On BeanCondition)
ErrorMvcAutoConfiguration.DefaultErrorViewResolverConfiguration#conventionErrorViewResolver matched:
-@ConditionalOnBean(types: org.springframework.web.rvlet.DispatcherServlet; SearchStrategy: a
ll) found bean 'dispatcherServlet';@ConditionalO nMissingBean(types: org.springframework.boot.autoconfigure.DefaultErrorViewResolver; SearchStrategy: all) did not find any beans (On BeanCondition)
ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration matched:
-@abled) matched (OnPropertyCondition)
莫华璋- ErrorTemplate Missing did not find error template view (ErrorMvcAutoConfiguration.ErrorTemplateMissingCondition)
ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration#beanNameViewResolver matched:
-@ConditionalOnMissingBean(types: org.springframework.web.rvlet.view.BeanNameViewResolver; SearchStrategy: all) did not find any beans (On BeanCondition)
58招聘ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration#defaultErrorView matched:
-@ConditionalOnMissingBean(names: error; SearchStrategy: all) did not find any beans (OnBeanCondition)
...........................................(此处省略⼀万字).
还有下⾯的:
Exclusions:
-----------
None
Unconditional class:
----------------------
org.springframework.t.ConfigurationPropertiesAutoConfiguration
org.springframework.t.PropertyPlaceholderAutoConfiguration
org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration
2020-04-0315:12:13[INFO ](TomcatWebServer ) Tomcat started on port(s):8080(http) with context path ''
解决办法:
1、在配置⽂件l或者application.properties⽂件中加⼊:
logging.level.springframework.boot.autoconfigure: error
(如果看到此篇⽂章的你也有此类的问题,可以按照这个⽅式试⼀下)
2、不过倒我这⾥yml⽂件加上了也不管⽤,很是郁闷;⼏番波折,我留意到控制台没有这个信息,但是⽇志
⽂件⾥有,于是看了⽇志的配置⽂件(log4j.properties),发现⽂件的⽇志级别为:INFO,⽽控制台的是:DEBUG,索性将⽂件的⽇志级别也设置为:INFO,解决问题
第⼀种办法可以参见: