错误详细信息:

org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String, java.lang.String>
at org.springframework.boot.context.properties.bind.Binder.handleBindError(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.logging.LoggingApplicationListener.setLogLevels(LoggingApplicationListener.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.logging.LoggingApplicationListener.initializeFinalLoggingLevels(LoggingApplicationListener.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:) ~[spring-context-5.0..RELEASE.jar:5.0..RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:) ~[spring-context-5.0..RELEASE.jar:5.0..RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:) ~[spring-context-5.0..RELEASE.jar:5.0..RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:) ~[spring-context-5.0..RELEASE.jar:5.0..RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at com.acs.springboot.AcsAdminApplication.main(AcsAdminApplication.java:) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_152]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:) ~[na:1.8.0_152]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:) ~[na:1.8.0_152]
at java.lang.reflect.Method.invoke(Method.java:) ~[na:1.8.0_152]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:) [spring-boot-devtools-2.0..RELEASE.jar:2.0..RELEASE]
Caused by: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, java.lang.String>]
at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:) ~[spring-core-5.0..RELEASE.jar:5.0..RELEASE]
at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:) ~[spring-core-5.0..RELEASE.jar:5.0..RELEASE]
at org.springframework.boot.context.properties.bind.BindConverter$CompositeConversionService.convert(BindConverter.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.BindConverter.convert(BindConverter.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.BindConverter.convert(BindConverter.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.MapBinder.bindAggregate(MapBinder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.AggregateBinder.bind(AggregateBinder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder.lambda$bindAggregate$(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder$Context.withIncreasedDepth(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder$Context.access$(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder.bindAggregate(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder.bindObject(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
at org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:) ~[spring-boot-2.0..RELEASE.jar:2.0..RELEASE]
... common frames omitted

抓住关键信息:

Failed to bind properties under 'logging.level'

错误产生背景:
SpringBoot1.5.9升级为2.0.7版本。

错误原因分析:
是因为SpringBoot2.0以上版本日志需要指定包路径才行。

解决办法(修改application.yml配置文件):

原文件关键内容如下:

logging:
level: warn

将其改为(指定包路径):

logging:
com.blog.springboot: WARN

com.blog.springboot是我个人博客的启动类,你们可以将其改为你自己的即可。
最后问题迎刃而解。

SpringBoot升级报错:Failed to bind properties under 'logging.level'的更多相关文章

  1. SpringBoot报错:Failed to load ApplicationContext( Failed to bind properties under 'logging.level')

    引起条件: SpringBoot2.0下yml文件配置SLF4j日志输出日志级别 logging: level: debug 解决方法: 指定系统包路径 logging: root: debug 指定 ...

  2. sprinbcloud学习之-Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String>

    日志报错,提示Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String>, 原因为 ...

  3. Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String, java.lang.String>

    org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'log ...

  4. springBoot配置druid监控报错Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource

    报错信息: Description: Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource ...

  5. SpringBoot启动报错Failed to determine a suitable driver class

    SpringBoot启动报错如下 Error starting ApplicationContext. To display the conditions report re-run your app ...

  6. springboot启动报错Failed to configure a DataSource

    2018-11-21 19:43:12.076 WARN 5392 --- [ main] ConfigServletWebServerApplicationContext : Exception e ...

  7. springboot启动报错 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

    新建了一个springboot项目报一下错误: Failed to configure a DataSource: 'url' attribute is not specified and no em ...

  8. dubbo启动报错failed to bind nettyserver on

    dubbo报错 今天启动项目的时候,关掉了custom服务, <dubbo:consumer check="false"/> 并且关掉了spring的elastic-j ...

  9. resin发布spring-boot项目报错“java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger”

    说白了还是jar包冲突问题,直接说解决方式: 首先将resin/lib下的validation-api-1.0.0.GA.jar替换成项目中的包validation-api-2.0.1.Final.j ...

随机推荐

  1. Springboot vue.js html 跨域 前后分离 Activiti6 shiro 权限

    官网:www.fhadmin.org 特别注意: Springboot 工作流  前后分离 + 跨域 版本 (权限控制到菜单和按钮) 后台框架:springboot2.1.2+ activiti6.0 ...

  2. ajxa和axios的区别

    1.axios 原理还是属于 XMLHttpRequest, 因此需要实现一个ajax. 2.但还会需要一个promise对象来对结果进行处理.3.ajax实现var Ajax={ get: func ...

  3. Leetcode 297. Serialize and Deserialize Binary Tree

    https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Serialization is the process of ...

  4. requestAnimationFrame ---- 请求动画帧。

    window.requestAnimationFrame() 告诉浏览器——你希望执行一个动画,并且要求浏览器在下次重绘之前调用指定的回调函数更新动画.该方法需要传入一个回调函数作为参数,该回调函数会 ...

  5. js学习之存储

    一.Cookie和Session的区别 1.cookie数据存放在客户的浏览器上,session数据放在服务器上(一般以内存.数据库.文件形式). 2.session会在一定时间内保存在服务器上.当访 ...

  6. python bs4 BeautifulSoup

    Beautiful Soup 是一个可以从HTML或XML文件中提取数据的Python库.bs4 模块的 BeautifulSoup 配合requests库可以写简单的爬虫. 安装 命令:pip in ...

  7. redis中获取不同自增数的方法

    项目需求,需要获取不同的自增数,然后与其他信息拼接成一个字符串作为编号,这边有一种基于数据库的获取自增数的方法,这边略过,还有一种基于redis的实现. 此方法可以用到redis的自增函数 publi ...

  8. 【爬虫】Load版的生产者和消费者模式

    ''' Lock版的生产者和消费者模式 ''' import threading import random import time gMoney = 1000 # 原始金额 gLoad = thre ...

  9. MySQL 8.0 的xtrabackup备份

    xtrabackup 备份语句: fname=`date +%F_%H-%M-%S` mkdir -p /mnt/dbbak/db_$fname xtrabackup --defaults-file= ...

  10. 性能测试基础---联机负载&IP欺骗

    ·联机负载&IP欺骗 ·联机负载:又叫分布式负载,即通过多台负载机(压力机)运行脚本,向服务器发送请求,从而实现更多的负载压力. ·联机负载的具体操作: ·了解两个概念: ·控制机:所谓控制机 ...