错误日志:
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
解决办法:
查看application.yml文件的编码,如果是GBK,先将内容拷贝出去,重新创建文件,然后将内容粘贴进去即可。