1 日志乱码:

JDK引用的设置 Java引用参数添加”-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8”

将上面参数添加到Catalina.sh中JAVA_OPTS变量中,重启Tomcat,OK了。

如果不行 :安装中文语言包 yum groupinstall chinese-support

再不行,检查i18n配置 :

/etc/sysconfig/i18n     

  LANG="en_US.UTF-8"

2中文链接404 

  在tomcat/conf/service.xml -Connector 中增加 URIEncoding="UTF-8"  

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

相关文章:

  • 2021-04-22
  • 2022-12-23
  • 2021-06-11
  • 2021-05-22
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2021-11-18
  • 2021-10-31
  • 2021-05-04
  • 2021-04-12
相关资源
相似解决方案