1. 首先打开idea的安装位置,找到idea64.exe.vmoptions,用Notepad打开它,在最后一栏填上**-Dfile.encoding=UTF-8**。
    解决idea2019中的log4j和tomcat乱码问题
    2.然后在idea->File->setting搜索File encoding,将所有编码格式改为UTF-8。
    解决idea2019中的log4j和tomcat乱码问题
    3.编辑tomcat配置,在 VM options添加-Dfile.encoding=UTF-8。
    解决idea2019中的log4j和tomcat乱码问题
    大功告成!

相关文章:

  • 2022-12-23
  • 2021-04-19
  • 2021-12-25
  • 2021-08-17
  • 2022-12-23
  • 2021-04-11
  • 2021-11-17
猜你喜欢
  • 2021-09-19
  • 2022-01-14
  • 2021-05-15
  • 2021-04-11
  • 2021-07-02
相关资源
相似解决方案