idea使用maven的Tomcat7插件启动项目时控制台乱码问题

1:既不需要在web.xml配置解决中文乱码的过滤器

2:也不需要在Tomcat插件配置UTF-8

**只需要配置 -Dfile.encoding=GB2312 **
打开File > setting > maven > Runner > VM Options 中添加-Dfile.encoding=GB2312
如图:idea使用maven的Tomcat7插件启动项目时控制台乱码问题

相关文章:

  • 2021-05-12
  • 2021-03-31
  • 2021-07-23
  • 2021-11-09
  • 2021-11-08
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2021-04-07
  • 2021-07-14
  • 2021-10-17
  • 2021-06-03
相关资源
相似解决方案