报错提示:java.lang.IllegalStateException: Failed to load property source from location ‘classpath:/application.yml’
Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
YML文件支持的解决方案
问题
由于使用技术需要,项目使用springboot,对自动生成的properties改成yml后缀,发现ide默认对yml的支持不好。搜索了网上发现并没有好的解决方案。
解决方案
确保上述插件选项勾选,重启ide 即可
文件关联
效果