Start tomcat, console output garbled problem:

IDEA console solves the garbled problem:

1: Open the Intelliidea installation path, find the idea.exe.vmoption file in IntelliJIDEA15.0.6\bin, open it, and fill in the last line: "-Dfile.encoding=utf-8", as shown in the figure, save it.Insert picture description here

2: Set the idea file encoding. Find "File->settings->Search File Encodeing" in the menu bar to set utf-8. as the picture shows[External link image transfer failed. The source site may have an anti-hotlink mechanism. It is recommended to save the image and upload it directly (img-cTeoEuyb-1614775068354)(C:\Users\cfb\AppData\Roaming\Typora\typora-user-images\ image-20210303203533659.png)]

3: Set the code of the idea server. Find "run->editconfigration" in the menu bar, find the "server" tab and set the vm option to -Dfile.encoding=utf-8, r as shown in the figureAs shown in Figure 3 (my personal test is very effective) [External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-3Oq9NuB2-1614775068356)(C:\Users\cfb\ AppData\Roaming\Typora\typora-user-images\image-20210303203615278.png)]

4. Restart! ! ! ! ! ! ! ! ! !

Guess you like

Origin blog.csdn.net/Anna_Liqi/article/details/114334023