首页 > 解决方案 > 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”,使其符合规范名称要求。

标签: spring-boot

解决方案


您的应用程序中有一个@ConfigurationPropertiesbean,其prefix属性设置为carWasher It should be car-washer


推荐阅读