Intellij IDEA integration tomcat 9.x, the console output garbled solution to the problem (the perfect solution)

 

 

 1. This part of the Chinese gibberish is due Tomcat reason ( premise: the need to ensure that the project Settings - All Encoding File Encoding of-8 are UTF )

Modify Tomcat - conf / logging.properties 
original configuration item java.util.logging.ConsoleHandler.encoding = GBK modify java.util.logging.ConsoleHandler.encoding = UTF-8

 


 

 

 

2. The garbage problem in this section is due IDEA

Note: idea installation directory bin directory open idea.exe.vmoption Notepad to modify the file is not recognized idea !!! must be configured through the open idea !!!

Help -> Edit Custom VM Properties -> Add -Dfile.encoding = utf-8 -> Restart idea

 

 

 


 

 

3. Configure may modify the contents of a single Tomcat or IDEA can not solve the Chinese garbled, but also modify the configuration file for the perfect solution!

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/chenxi-mxj/p/12102588.html