使用@ConfigurationProperties注解提示"Prefix must be in canonical form", 问题原因: prefix里面不能用驼峰写法,必须全部小写 修改后: 问题解决!