错误详细信息:

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. 记一次Spring boot集成mybatis错误修复过程 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

    最近自己写了一份代码签入到github,然后拉下来运行报下面的错误 Error starting ApplicationContext. To display the conditions repor ...

  2. VS 对话框控件的Tab顺序问题

    我们先来直观的看看各个控件的Tab顺序吧.打开“Resource View”视图,然后在资源中找到对话框IDD_ADDITION_DIALOG,双击ID后中间客户区域出现其模板视图.在主菜单中选择“F ...

  3. MES应用案例 | 天博集团成功完成数字化转型

    受到智能制造观念和技术的巨大且快速的影响,使得工业特别是汽车行业必须以最快速度赶上这场企业数字化转型的浪潮,唯有实现企业转型升级才能在这场速度战中占得先机.当然关于企业的转型升级,最为重要的是需要打造 ...

  4. Linux(Ubuntu)系统下使用crontab定期执行任务

    安装cron(Ubuntu系统自带) apt-get install cron 开启crontab日志 默认情况下的日志是没有开启的,我们需要找到 /etc/rsyslog.d/50-default. ...

  5. Docker 0x06: Docker Volume卷

    目录 Docker Volume卷 一句话什么是docker volume? docker volume特性 docker 挂载卷 docker 多容器间共享数据券 删除,查看数据卷 备份还原数据卷 ...

  6. springboot 打包太大,打包瘦身,打包thin

    pom文件修改: <build> <resources> <resource> <directory>src/main/resources</di ...

  7. Backbone——数据驱动UI的js开发模式

    转载请注明原文地址:https://www.cnblogs.com/ygj0930/p/10826074.html 一:Backbone是什么——JS的MVC框架 Backbone基于undersco ...

  8. yum localinstall 解决本地 rpm 包的依赖问题

    yum localinstall 解决本地 rpm 包的依赖问题 本文原始地址:https://sitoi.cn/posts/13384.html 使用命令: sudo rpm -ivh xxx.rp ...

  9. SQL注入(1)

    一.注入点的判断及猜解1.加入单引号 ’提交,结果:如果出现错误提示,则该网站可能就存在注入漏洞.2.数字型判断是否有注入;语句:and 1=1 ;and 1=2 (经典).' and '1'=1(字 ...

  10. php原型模式(prototype pattern)

    练练练,计划上午练完创建型设计模式. <?php /* The prototype pattern replicates other objects by use of cloning. Wha ...