jenkins的控制台乱码问题

1.环境变量里增加 JAVA_TOOL_OPTIONS : -Dfile.encoding=UTF-8

2.tomcat/conf/sever.xml 文件修改:

<Connector port="8080" useBodyEncodingForURI="true" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

3.重启tomcat

posted @ 2021-08-06 16:28  一叶小舟1  阅读(74)  评论(0编辑  收藏  举报