可能有不少缘由,但我这边问题在于新建配置使用spring
@ConfigurationProperties(prefix = "projectUrl")
注解读取application.yml文件中的系统参数时,不能有大写字母改成“projecturl”便可springboot
我使用的是springboot2.0.3版本,springboot1.5如下版本貌似不存在此类问题!app