对于yml文件的格式问题,我觉得很麻烦,刚刚运行一个sprng项目,就报错:“Caused by: java.nio.charset.MalformedInputException: Input length = 1”和“Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1”

解决:java.nio.charset.MalformedInputException: Input length = 1或org.yaml.snakeyaml.error.YAMLException

我看了十几篇文章,对着做,结果还是没有解决问题。

于是,我就用回properties格式了,于是项目就没有报错了。

推荐个转换格式的网站:yml、properties格式互相转换

我还想讲:我们学技术,重点关注那些关键的地方就好了,没必要在格式这些细枝末节的地方恋战。

解决:java.nio.charset.MalformedInputException: Input length = 1或org.yaml.snakeyaml.error.YAMLException

相关文章:

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