java.nio.charset.MalformedInputException: Input length = 1

22 阅读1分钟

打开一个新的项目,发现springboot运行报错:org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1。

看了网上很多帖子,仅仅需要将settings——》file encodings都改为utf-8即可,如下图:

大部分情况改完就已经能解决错误了,但我还是报错,其实还需要一步,rebuild project重新构建项目即可。