spring boot 1.x 切换 2.x 以后启动报如下错误:

***************************
APPLICATION FAILED TO START
***************************Description:Configuration property name 'sysConf' is not valid:Invalid characters: 'C'Bean: sysConfReason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letterAction:Modify 'sysConf' so that it conforms to the canonical names requirements.

从报错信息可以看出,spring boot 2.x 中对配置文件中名称的命名规范进行了强制约束,需要使用kebab格式,不能使用java中的驼峰式写法了,分隔符使用 ’-‘ 来分隔

#系统配置
sys-conf:session-alive-time: 1800 

修改以后启动成功

spring boot 启动报错:Reason: Canonical names should be kebab-case ('-' separated), lowercase相关推荐

  1. spring boot 启动报错:No qualifying bean of type org.springframework.security.oauth2.provider.token.Toke

    spring boot启动报错: Exception encountered during context initialization - cancelling refresh attempt: o ...

  2. Spring boot 启动报错 'elasticsearchTemplate' that could not be found.

    Spring boot 启动报错 (a)异常信息 Error starting ApplicationContext. To display the conditions report re-run ...

  3. Spring boot 启动报错:Unable to start web server

    今天启动一个小项目,发现启动直接报错,找找原因看看... 2020-05-08 10:07:21.287 INFO 1988 --- [ restartedMain] com.example.demo ...

  4. Spring Boot启动报错:Failed to instantiate [ClassName]: No default constructor found;

    今天在Spring Boot工程启动时报错了,提示不能初始化该类,原因是找不到默认的构造方法,我看了一下,我也有写构造方法: public class H2DbOperation extends Ab ...

  5. spring boot 启动报错Log4j2 could not find a logging implementation 解决

    报错日志如下 ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to t ...

  6. 【java基础知识】Spring Boot启动报错com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectExcepti

    报错内容 com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused ...

  7. Spring Boot启动报错问题: The Bean Validation API is on the classpath but no implementation could be found

    背景:项目代码放到自己的电脑运行,然后启动main方法报错. 错误信息: [org.springframework.validation.beanvalidation.OptionalValidato ...

  8. Spring Boot 启动报错:Caused by: java.lang.UnsupportedClassVersionError:

    错误原因:应该jdk版本不一致导致的 可以进行以下查看,确保版本一致. 1.查看java编译器确保一致 2.查看项目结构,俩地方 如果这些都一致,那么查看pom.xml 我的就是这个原因 查看pom. ...

  9. Spring Cloud/Boot启动报错Consider defining a bean of type ServerCodecConfigurer

    网关项目启动报错内容如下: Error starting ApplicationContext. To display the conditions report re-run your applic ...

  10. Spring项目启动报错No qualifying bean of type [xxx] available: expected single matching bean but found 2

    启动报错: No qualifying bean of type [class1] available: expected single matching bean but found 2,class ...

最新文章

  1. 浅析从小米造车背后探索小米集团的企业网络推广策略会有怎样的灿烂
  2. 读取SBT项目resources目录中的文件
  3. 在JDeveloper 12.1.3中将Java API用于WebSockets
  4. 带有Angular JS的Java EE 7 –第1部分
  5. LogBack 打印 ES的DSL日志信息
  6. 神界计算机丢失msvcp120.dll,win8 msvcp120.dll丢失怎样修复?计算机中丢失msvcp120.dll处理办法...
  7. [No000014B]Office-PPT设置默认打开视图
  8. c语言ascii码表查询,ascii码表查询_ascii码表怎么看
  9. 关于华为2019全联接大会,精华内容都在这里!
  10. Python实现文件/文件夹名按字符串排序或者按数字排序
  11. 微信开发 ━━ 微信商户v3微信支付回调之php篇
  12. 十 LVS 负载均衡
  13. BS与CS的联系与区别
  14. ai描边工具怎么打开_ai描边面板怎么调出来? ai找不到描边面板的解决办法
  15. 《持续集成实践指南》第2章 持续集成环境搭建Jenkins+Gitlab+Gerrit
  16. 浪潮NF5280M5服务器配置RAID
  17. redis集群之主从复制+哨兵模式
  18. 前端第二章:5.语义化标签、p标签、q标签、em标签、strong标签、blockquote标签、br标签、h标签
  19. AS之spinner
  20. 2021-09-01剑指offer37序列化二叉树

热门文章

  1. 图扑软件携手华为云再创合作共赢新局面
  2. msdos gpt
  3. python调用gpu amd_TensorFlow使用AMD GPU实现加速(ROCm/Ubuntu 18.04)
  4. linux 磁盘坏道修复,linux系统下检测硬盘上的坏道和坏块
  5. 常见的导数公式和积分公式
  6. 为什么说全球变暖不是阴谋论
  7. #FFMPEG4.3.1#命令行实现视频码率转换、缩放、剪切、填充、旋转操作(3)
  8. HTML img src图片路径不存在,则显示一张默认图片的方法
  9. oracle的number类型
  10. html加减乘除除数不能为零,0不能做除数(数学中0为什么不能做除数)