Tomcat console to solve the garbage

1, open the directory of Tomcat, find conf folder, modify the code set server.xml in general, and can be changed to utf-8

 

2, if the set is encoded server.xml utf-8, you can modify the file logging.properties

Find java.util.logging.ConsoleHandler.encoding = UTF-8, the default is utf-8, amended as: java.util.logging.ConsoleHandler.encoding = GBK

 

 Save and restart

 

 

Guess you like

Origin www.cnblogs.com/an-ning0920/p/11895729.html