IDEA中的spring boot项目读取properties文件时出现中文乱码的问题

解决方法

IDEA中的spring boot项目读取properties文件时出现中文乱码的问题
IDEA优点高级,有Transparent native-to-ascii conversion这个选择,
就是将utf-8的文件编码转换成ASCII编码

如果按照上面设置后, 重启服务,重启IDEA, 再次访问还是乱码
就将之前创建的properties 文件删除, 重新创建过

还有的解决方面就是将application.properties配置文件改成application.yaml文件

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-01-21
  • 2021-08-29
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-07-04
  • 2021-05-20
  • 2021-09-16
  • 2021-10-02
  • 2021-10-19
  • 2021-12-24
相关资源
相似解决方案