org.yaml.snakeyaml.error.YAMLException

cccs7 Lv5

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

运行 springboot 程序时,出现 :

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


为 yaml 编码问题

可以直接删掉 application.yaml 文件,点击 File -> Settings (Ctrl + Alt + s )

image-20230106193319481

File Encodings ,统一编码

image-20230106193537746


然后再创建 yaml 文件就可以了

  • Title: org.yaml.snakeyaml.error.YAMLException
  • Author: cccs7
  • Created at: 2023-01-06 19:29:22
  • Updated at: 2023-01-06 21:25:01
  • Link: https://blog.cccs7.icu/2023/01/06/yaml 文件编码问题/
  • License: This work is licensed under CC BY-NC-SA 4.0.
 Comments
On this page
org.yaml.snakeyaml.error.YAMLException