1、运行springboot项目,出现“Failed to bind properties under 'spring.config.activate' to org.spr足毂忍珩ingframework.boot.context.config.ConfigDataProperties$Activate:”错误。
2、这个错误可能是yml文件中的格式导致的。打开yml文件,发现有些属性的冒号后面没有空格。
3、在冒号后面加上空格就可以解决这个问题。
时间:2024-10-24 22:29:53
1、运行springboot项目,出现“Failed to bind properties under 'spring.config.activate' to org.spr足毂忍珩ingframework.boot.context.config.ConfigDataProperties$Activate:”错误。
2、这个错误可能是yml文件中的格式导致的。打开yml文件,发现有些属性的冒号后面没有空格。
3、在冒号后面加上空格就可以解决这个问题。