spring-boot - Spring-boot Api 未启动
问题描述
应用程序无法启动
描述:
配置属性名称“carWasher”无效:
Invalid characters: 'W'
Bean: carWasher-com.carWasher.properties.CarWasherProperties
Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter
行动:
修改“carWasher”,使其符合规范名称要求。
解决方案
您的应用程序中有一个@ConfigurationProperties
bean,其prefix
属性设置为carWasher
It should be car-washer
。
推荐阅读
- apache-kafka - 使用KafkaStreams处理主题时如何从主题中获取上一条消息
- docker - Docker inside wsl2 和 Docker desktop 的区别
- c# - .net 核心自包含和配置文件,如果我需要更改配置文件中的某些内容怎么办?
- spring-boot - 在 Rest Service Spring Boot 中访问 @Aspect Advice 中的 @RequestBody 对象
- amazon-iam - 调用 PutRolePolicy 操作时发生错误(ValidationError):policyDocument 的指定值无效
- ios - 为什么我不能更改 Timer.scheduledTimer 函数中变量的值?
- javascript - 循环删除和添加对象属性
- image - Android Studio - 将位图保存到图库不正确
- r - 如何通过分组合并行并仅在R中保留最高值
- cordova - 从 Cordova android 模拟器打印