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

人生因有期待而美好; 谁不是一边热爱生活,又一边不想活。 学最好的别人,做最好的自己。
原文地址:https://www.cnblogs.com/peoty/p/15109229.html