spring boot IDE启动正常,打包后运行jar异常:
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
解决方式:java -Dfile.encoding=utf-8 -jar xx.jar
spring boot IDE启动正常,打包后运行jar异常:
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
解决方式:java -Dfile.encoding=utf-8 -jar xx.jar