springboot报错InvalidConfigurationPropertyNameException, not valid
新搭建了一个项目,使用的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相关推荐
- SpringBoot报错:Could not autowire. No beans of ‘DiscussantMapper‘ type found
SpringBoot报错:Could not autowire. No beans of 'DiscussantMapper' type found 一.资源 @Mapper和@Repository注 ...
- 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource
2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...
- 【杂文】spring-boot报错 ~ zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized or represents more than on time zone.
spring-boot报错 zone value 'Öйú±ê׼ʱ¼ä' is unrecognized 修改MySQL的配置文件(failed) 更改MySQL中的系统时间(failed) 修 ...
- springboot报错!!!
点击运行springboot,再在浏览器访问路径的时候,报错!!! 运行结果出来了,但是再结束的时候报错. springboot报错java.lang.NoSuchMethodError: javax ...
- 【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的两种解决方案 主要 ...
- springboot报错:class path resource cannot be opened because it does not exits
问题描述:springboot报错:在使用@PropertySource注解读取properties文件时,报错:class path resource cannot be opened becaus ...
- SpringBoot报错 org.apache.catalina.LifecycleException: Protocol handler start failed
很多人在第一次创建运行SpringBoot项目的时候会报错 org.apache.catalina.LifecycleException: Protocol handler start failed ...
- path manipulation怎么解决_超详细的toad报错解决--no valid oracle clients found.
概述 前几天分享了怎么安装toad for dba工具,但是Toad安装后,在启动Toad时报"No valid Oracle Client found"错,下面分享下解决的过程. ...
- axios+springboot 报错 POST http://localhost:8080/Login 404 (Not Found)
问题:点击登录,页面无跳转,报错: POST http://localhost:8080/Login 404 (Not Found) Uncaught (in promise) Error: Requ ...
最新文章
- 重启网卡服务_Linux下查看不到物理网卡配置
- 项目安排[动态规划]
- node mysql 连接池创建_Node.js使用MySQL连接池的方法实例
- IOS之提示Interface type cannot be statically allocated
- 【Floyed】【最短路】商店选址问题(ssl 1760)
- Basic Theory of Physically-Based Rendering
- Java Web Start简介
- Bootstrap面包屑导航
- ets5怎么找到数据文件夹_如何对文件夹进行加密
- MySQL用命令行运行sql文件
- 【百度之星程序设计大赛】2020年初赛第三场第四题Intersection
- matlab绘制加速度曲线,加速度积分得到速度和位移的问题小结
- 企业网络及应用层安全防护技术精要
- onenote如何删除笔记本
- 导通压降与死区的开启电压区别
- Spy vs. Spy
- 用powershell脚本自动解锁AD账号
- 用vue写一套销客多电商分销后台系统
- 原创:VLOOKUP函数的使用方法(高级篇)
- 《视窗控制中心 V6.0》(SIMATIC WinCC V6.0)6.0 SP3 + Hotfix2 Build: 6.1.1.2[ISO]