一、kebal格式问题
当你试图在Spring Boot的配置文件中使用驼峰格式时,会出现如下错误:
***************************APPLICATION FAILED TO START***************************Description:Configuration property name 'Staff' is not valid:Invalid characters: 'S'Bean: sysConfReason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letterAction:Modify 'Staff' so that it conforms to the canonical names requirements.
原因是:Spring Boot 2.x 中对配置文件中名称的命名规范进行了强制约束,需要使用kebab格式,不能使用java中的驼峰格式写法,转而需要使用分隔符-来分隔。具体要求如下:

二、配置文件乱码问题
properties配置文件在idea中默认utf-8可能会乱码,需要修改idea配置
