SpringBoot的yml配置文件里一处自定义属性出现的错误提示:“Expecting a 'string' but got a 'Mapping' node” 症状细节图: 症状鸟瞰图: 解决办法: 删除 name 和“开发环境”之间的空格。就这么简单。 康复图: END