Java教程

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

本文主要是介绍org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

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

yml文件编码问题

通常的启动方式:

java -jar springboot服务

设置启动编码方式:

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

这篇关于org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!