@ConfigurationProperties与yml配置文件属性匹配规则
@ConfigurationProperties的prefix书写规范prefix值应该用小写字母、数字、中划线“-”区分单词 不能用大写字母、特殊字符,区分单词不能用下划线。例如:my-info,不要用my_info、myInfospringboot的提示 :Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with
原创
2020-11-22 22:04:51 ·
7517 阅读 ·
2 评论