The correct version! ! ! Completely solve the tomcat Chinese garbage problem

After searching the Internet, whether we change the Server.xml URIEncoding or compiler of coding useless, I finally found a way to completely solve:

① - >>> open the file tomcat

② - >>> open conf folder

③ - >>> open file logging.properties

④ - >>> find the location of the first 50 lines of configuration information as follows:

java.util.logging.ConsoleHandler.encoding = GBK

and:Here Insert Picture Description

Because we have to solve the garbage problem is to print the log Chinese, so the encoding format to GBK just fine

Configuration Rear view:

Here Insert Picture Description

  • This is my information is printed on the console IDEA, hope that this answers all of you help! ! ! ! !
Published 58 original articles · won praise 7 · views 9237

Guess you like

Origin blog.csdn.net/Mr_OO/article/details/103483670