在修改这个问题是我们首先得明白 为什么会出现乱码问题(当然是编码方式不一致),window中默认的编码方式为gdk,idea也一样默认使用gdk编码,但是tomcat日志编码是utf-8.这个可以在tomcat根目录下/conf/logging.properties文件打开查看。
IDEA 中tomcat乱码问题
这时候有两种方式
1.在修改logging.properties编码为GBK
2Help-- custom vm options 添加-Dfile.encoding=UTF-8

相关文章:

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