新搭建了一个项目,使用的springboot,启动报错如下:

org.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException: Configuration property name 'application.authorizationInterceptor' is not validat org.springframework.boot.context.properties.source.ConfigurationPropertyName.elementsOf(ConfigurationPropertyName.java:522)

配置如下:

@Component
@ConfigurationProperties(prefix = "application.authorizationInterceptor")
application:authorizationInterceptor:enable: true

原因:

 yml配置不支持驼峰或者下划线格式的name。

修改:

@Component
@ConfigurationProperties(prefix = "application.authorization")
application:authorization:enable: true

修改完重新启动,没有报错,搞定。

springboot报错InvalidConfigurationPropertyNameException, not valid相关推荐

  1. SpringBoot报错:Could not autowire. No beans of ‘DiscussantMapper‘ type found

    SpringBoot报错:Could not autowire. No beans of 'DiscussantMapper' type found 一.资源 @Mapper和@Repository注 ...

  2. 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource

    2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...

  3. 【杂文】spring-boot报错 ~ zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized or represents more than on time zone.

    spring-boot报错 zone value 'Öйú±ê׼ʱ¼ä' is unrecognized 修改MySQL的配置文件(failed) 更改MySQL中的系统时间(failed) 修 ...

  4. springboot报错!!!

    点击运行springboot,再在浏览器访问路径的时候,报错!!! 运行结果出来了,但是再结束的时候报错. springboot报错java.lang.NoSuchMethodError: javax ...

  5. 【Debugger】解决springboot报错Failed to resolve org.junit.platform:junit-platform-launcher:1.x.x的两种解决方案

    [Debugger]解决springboot报错Failed to resolve org.junit.platform:junit-platform-launcher:1.x.x的两种解决方案 主要 ...

  6. springboot报错:class path resource cannot be opened because it does not exits

    问题描述:springboot报错:在使用@PropertySource注解读取properties文件时,报错:class path resource cannot be opened becaus ...

  7. SpringBoot报错 org.apache.catalina.LifecycleException: Protocol handler start failed

    很多人在第一次创建运行SpringBoot项目的时候会报错 org.apache.catalina.LifecycleException: Protocol handler start failed ...

  8. path manipulation怎么解决_超详细的toad报错解决--no valid oracle clients found.

    概述 前几天分享了怎么安装toad for dba工具,但是Toad安装后,在启动Toad时报"No valid Oracle Client found"错,下面分享下解决的过程. ...

  9. axios+springboot 报错 POST http://localhost:8080/Login 404 (Not Found)

    问题:点击登录,页面无跳转,报错: POST http://localhost:8080/Login 404 (Not Found) Uncaught (in promise) Error: Requ ...

最新文章

  1. 重启网卡服务_Linux下查看不到物理网卡配置
  2. 项目安排[动态规划]
  3. node mysql 连接池创建_Node.js使用MySQL连接池的方法实例
  4. IOS之提示Interface type cannot be statically allocated
  5. 【Floyed】【最短路】商店选址问题(ssl 1760)
  6. Basic Theory of Physically-Based Rendering
  7. Java Web Start简介
  8. Bootstrap面包屑导航
  9. ets5怎么找到数据文件夹_如何对文件夹进行加密
  10. MySQL用命令行运行sql文件
  11. 【百度之星程序设计大赛】2020年初赛第三场第四题Intersection
  12. matlab绘制加速度曲线,加速度积分得到速度和位移的问题小结
  13. 企业网络及应用层安全防护技术精要
  14. onenote如何删除笔记本
  15. 导通压降与死区的开启电压区别
  16. Spy vs. Spy
  17. 用powershell脚本自动解锁AD账号
  18. 用vue写一套销客多电商分销后台系统
  19. 原创:VLOOKUP函数的使用方法(高级篇)
  20. 《视窗控制中心 V6.0》(SIMATIC WinCC V6.0)6.0 SP3 + Hotfix2 Build: 6.1.1.2[ISO]

热门文章

  1. codecomebat游戏代码--边缘地区的森林
  2. java 线程池概念、优缺点、应用场景
  3. iPhone14和Mate 50哪个好 苹果14和华为mate50哪个值得买?
  4. 运用c语言编写程序:判断素数的多种方法
  5. 关于SqlServer入参带分号查询问题
  6. Web前端自学好学吗?求职方向有哪些
  7. i7-1165G7 怎么样 相当于什么水平
  8. 【原创】个人常用Mac电脑软件记录
  9. 微信小程序 四:提示事件showModal/showToast
  10. 【愚公系列】2023年04月 攻防世界-MOBILE(easy-apk)