情况1:

tomcat中conf目录下有个叫server.xml的文件,里面

<Connector port="8080" protocol="HTTP/1.1"          
    connectionTimeout="20000" 
    redirectPort="8443" 
    URIEncoding=“UTF-8” />

这一句是设置tomcat编码的。
MyEclipse工程编码和tomcat编码不一致会导致控制台乱码,设置成一致的就可以了

情况2

菜单Windows->Preferences->MyEclipse Enterprise Workbench->Servers->Tomcat,选择tomcat版本例如Tomcat 6.x,再选择JDK,在右侧Optional Java VM arguments:中添加
-Dfile.encoding=gbk或其它编码

tomcat启动时 myeclipse控制台中文乱码

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2021-07-20
  • 2021-10-31
  • 2022-01-16
  • 2021-04-02
猜你喜欢
  • 2021-06-21
  • 2021-11-06
  • 2021-07-26
  • 2021-07-25
  • 2021-05-19
  • 2021-07-23
相关资源
相似解决方案