org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1

yml文件编码问题

通常的启动方式:

java -jar springboot服务

设置启动编码方式:

java -Dfile.encoding=utf-8 -jar springboot服务

posted @ 2020-10-17 02:03  卑微小生  阅读(5231)  评论(2)    收藏  举报