Springboot项目运行报错:Caused by: java.nio.charset.MalformedInputException: Input length = 1

启动springboot项目时出现以下错误:
Springboot项目运行报错:Caused by: java.nio.charset.MalformedInputException: Input length = 1
Springboot项目运行报错:Caused by: java.nio.charset.MalformedInputException: Input length = 1
Caused by: java.lang.IllegalStateException: Failed to load property source from location ‘classpath:/application.yml’
Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
Caused by: java.nio.charset.MalformedInputException: Input length = 1

解决办法:
在application.yml文件右下角将GBK或者其它编码装换成UTF-8即可
Springboot项目运行报错:Caused by: java.nio.charset.MalformedInputException: Input length = 1
修改后运行成功:
Springboot项目运行报错:Caused by: java.nio.charset.MalformedInputException: Input length = 1