Article From:

Intellij IdeaWhen packing works, the console displays random code

This is mainly caused by the Maven compile time coding problem. In Intellij’s settings, its VM Options is set to -DarchetypeCatalog=internal -Dfile in the run configuration of Maven..encoding=GBK can solve the problem of Chinese garbled when compiling and packaging Maven.


Intellij IdeaUse Maven’s Tomcat plug-in to start the console random code



         VMoptions: -Dfile.encoding=GB2312


Intellij IdeaUse your own Tomcat to start the console random code

Personal solution is directly set up in Tomcat configuration VM-option in -Dfile.encoding=UTF-8 directly.


Leave a Reply

Your email address will not be published. Required fields are marked *