Failed to load property source from 'file:/D:/workspace/putaway_commodity/target/classes/application.yml' (classpath:/application.yml)

Failed to load property source from 'file:/D:/workspace/putaway_commodity/target/classes/application.yml' (classpath:/application.yml)

1. 引起这个异常的原因是 application.yml文件中有中文注释 , 所导致

2. 解决 : 

 

 3. 先删除yml文件,再重新新建yml文件

posted @ 2020-07-23 11:23  Anonymity_Zhang  阅读(2008)  评论(0编辑  收藏  举报