启动springBoot报错:

Exception in thread "main" org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 2

 

原因:传输文件的时候编码解码格式不对

解决:

(1)第一步:将idea环境的编码确认为UTF-8

org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 2

(2)第二步:复制yml文件中的内容,删除原来的.yml文件--->重新创建同名的.yml文件---->将原来的内容粘贴进去。

org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 2

 

(3)完成上述两步,妥!

 

 

 

相关文章:

  • 2021-07-09
  • 2021-07-27
  • 2021-08-29
  • 2021-11-28
  • 2021-08-11
  • 2021-08-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-01-05
  • 2021-06-18
  • 2021-04-03
相关资源
相似解决方案