最近Spring Boot项目在启动的时候显示无法加载配置文件,可是项目配置明明没有错误,后面发现是application.yml的编码格式出错了

  1. 开发工具为IDEA

  2. 点击File–>setting
    Failed to load property source from location 'classpath:/application.yml'

  3. 搜索File Encoding
    Failed to load property source from location 'classpath:/application.yml'

相关文章: