3
IDEA中Tomcat输出中文乱码解决方法
source link: https://www.huhexian.com/32549.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
IDEA中Tomcat输出中文乱码解决方法
2022-03-1711:48:11评论457字
这篇文章主要介绍了IDEA 启动 Tomcat 项目输出乱码的解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧。
解决方法在 tomcat/conf 目录下,编写 logging.properties ,增加或修改参数以下行,重启后可以了
- java.util.logging.ConsoleHandler.encoding = GBK
- <Connector port="8080" protocol="HTTP/1.1"
- connectionTimeout="20000"
- redirectPort="8443"
- URIEncoding="UTF-8" />
- <Connector protocol="AJP/1.3"
- address="::1"
- port="8009"
- redirectPort="8443"
- URIEncoding="UTF-8" />
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK