当前位置: 首页 > news >正文

启动网站集约化建设朝阳网站建设 国展

启动网站集约化建设,朝阳网站建设 国展,wordpress the time,手机app游戏制作软件在启动SpringBoot项目时,提示一堆的Positive matches、Negative matches(如下代码框),感觉像是报错了样。但用SpringBoot的Test类操作数据库的Insert是成功的。提示这些信息通过网上搜索主要讲配置类被Spring容器加载与被加载的说明。名词解释…

  在启动SpringBoot项目时,提示一堆的Positive matches、Negative matches(如下代码框),感觉像是报错了样。但用SpringBoot的Test类操作数据库的Insert是成功的。提示这些信息通过网上搜索主要讲配置类被Spring容器加载与被加载的说明。名词解释如下:

  • Positive matches:@Conditional条件为真,配置类被Spring容器加载。
  • Negative matches: @Conditional条件为假,配置类未被Spring容器加载。
  • Exclusions: 应用端明确排除加载配置
  • Unconditional classes: 自动配置类不包含任何类级别的条件,也就是说,类始终会被自动加载。
2023-11-23 22:19:06.345 [DEBUG]  [main] o.s.c.s.DefaultLifecycleProcessor - Starting beans in phase -2147483647 
2023-11-23 22:19:06.345 [DEBUG]  [main] o.s.c.s.DefaultLifecycleProcessor - Successfully started bean 'springBootLoggingLifecycle' 
2023-11-23 22:19:06.348 [DEBUG]  [main] o.s.b.a.l.ConditionEvaluationReportLoggingListener - ============================
CONDITIONS EVALUATION REPORT
============================Positive matches:
-----------------ConfigurationPropertiesRebinderAutoConfiguration matched:- @ConditionalOnBean (types: org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor; SearchStrategy: all) found bean 'org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor' (OnBeanCondition)ConfigurationPropertiesRebinderAutoConfiguration#configurationPropertiesBeans matched:- @ConditionalOnMissingBean (types: org.springframework.cloud.context.properties.ConfigurationPropertiesBeans; SearchStrategy: current) did not find any beans (OnBeanCondition)ConfigurationPropertiesRebinderAutoConfiguration#configurationPropertiesRebinder matched:- @ConditionalOnMissingBean (types: org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder; SearchStrategy: current) did not find any beans (OnBeanCondition)EncryptionBootstrapConfiguration matched:- @ConditionalOnClass found required class 'org.springframework.security.crypto.encrypt.TextEncryptor' (OnClassCondition)EncryptionBootstrapConfiguration#keyProperties matched:- @ConditionalOnMissingBean (types: org.springframework.cloud.bootstrap.encrypt.KeyProperties; SearchStrategy: all) did not find any beans (OnBeanCondition)PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer matched:- @ConditionalOnMissingBean (types: org.springframework.context.support.PropertySourcesPlaceholderConfigurer; SearchStrategy: current) did not find any beans (OnBeanCondition)Negative matches:
-----------------EncryptionBootstrapConfiguration.RsaEncryptionConfiguration:Did not match:- Keystore nor key found in Environment (EncryptionBootstrapConfiguration.KeyCondition)Matched:- @ConditionalOnClass found required class 'org.springframework.security.rsa.crypto.RsaSecretEncryptor' (OnClassCondition)EncryptionBootstrapConfiguration.VanillaEncryptionConfiguration:Did not match:- @ConditionalOnMissingClass found unwanted class 'org.springframework.security.rsa.crypto.RsaSecretEncryptor' (OnClassCondition)Exclusions:
-----------NoneUnconditional classes:
----------------------None


  虽然不影响功能,但看起来受不了。于是一顿搜索,网上有说在yml里面配置springframework日志为info或error,或配置logging日志都不对。突然间查看日志打开【DEBUG】,恍然大悟自己的工程文件中配置有logback.xml,于是在里修改日志级别为INFO就不会打印烦人的加载信息了。

<?xml version="1.0" encoding="UTF-8"?>
<configuration><!--CONSOLE :表示当前的日志信息是可以输出到控制台的。--><appender name="Console" class="ch.qos.logback.core.ConsoleAppender"><encoder><pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%level]  %cyan([%thread]) %boldGreen(%logger{15}) - %msg %n</pattern></encoder></appender><logger name="com.itheima" level="INFO" additivity="false"><appender-ref ref="Console"/></logger><!--level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, 默认debug<root>可以包含零个或多个<appender-ref>元素,标识这个输出位置将会被本日志级别控制。--><root level="INFO"><appender-ref ref="Console"/></root>
</configuration>

参考地址:

https://www.cnblogs.com/ithg/p/15661021.html

参考地址:

了解Spring Boot的自动配置-腾讯云开发者社区-腾讯云

http://www.yayakq.cn/news/683656/

相关文章:

  • 云南做网站公司哪家好中文域名转换英文域名
  • 利用ionic做的网站wordpress编辑器软件
  • 水果网站大全app下载淮安网站建设制作
  • 潍坊网站建设 诸城在微信上做网站
  • 苏州快速建站模板网站建设学习视频
  • 自适应产品网站模板优化方案数学2024电子版
  • 网站推广 排名网站建设过程论文
  • 昆明做网站建设找谁网络游戏排行榜2020
  • 建网站价格网页面设计课后反思
  • 音箱厂家东莞网站建设无锡做网站公司多少钱
  • 网站建设内容模板下载个人微信小程序怎么赚钱
  • 关于网站开发市问卷调查教你做网站
  • wordpress网站防采集优化方案英语
  • 深圳婚纱摄影网站建设.flv 网站播放
  • 美创网站建设优势天眼查询企业信息官网电话
  • seo企业建站系统用h5做网站是什么意思
  • 江西建设职业技术学院网站工程施工合同
  • 网站用什么工具做海南省建设网站的公司电话号码
  • 建站工具上市网站优化协议
  • 怎么给网站添加关键词大街网企业招聘官网
  • 保定网站建设电话西安百度竞价代运营
  • 河南建设监理协会网站电话网站建设及维护包括范围
  • 企业官网建站系统wordpress阿里云虚拟机
  • 深圳网站建设民治大道网易企业邮箱后缀怎么设置
  • 外贸商城网站资质用html5做的简单的网站
  • 网站建设更新不及时中英文网站源码php
  • 1717做网站什么是网站的入口
  • 手机端网站做app开发it运维需要学哪些知识
  • 企业网站建设条件传奇游戏开发
  • 百度验证网站所有权app开发公司资质