IDEA resolve and console tomcat localhost log catalina log output garbage problem, solve the garbage problem in tomcat start startup.bat

Startup.bat appear in the startup log information garbled, directly to the installation directory of tomcat, find logging.properties files directly in the conf directory, with a casual open software, open Notepad can modify; all inside UTF- 8 instead GBK
Here Insert Picture Description
open IDEA click file, click the setting in, find the file Encodings
Here Insert Picture Description
to change the default GBK UTF-8, then find the run of the top menu bar, and then open,
Here Insert Picture Description
find the Edit Configurations, click open, on the left find Tomcat server you use,
Here Insert Picture Description
which added -Dfile.encoding = UTF-8
so basically be resolved. The most important thing is the process where the configuration of Tomcat conf personal feeling IDEA is the default GBK, so some do not move also possible, which would address the IDEA console tomcat localhost log and catalina log output garbled.

Published 12 original articles · won praise 0 · Views 268

Guess you like

Origin blog.csdn.net/weixin_45488363/article/details/105285400