springboot项目启动报错:ERROR org.springframework.boot.SpringApplication - Application run failed org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
ERROR org.springframework.boot.SpringApplication - Application run failed
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
原因,yml的中文注释与设定的encoding格式起了冲突
先把application.yml的内容全部保存下来,删掉文件
左上角setting-editor-file encodings ,把project encoding 由gbk改为utf-8
然后重新建applicaton.yml ,粘上内容,问题解决
直接先改格式的话,注释会变乱码