Article From:https://www.cnblogs.com/coder-lzh/p/9060071.html

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

Resolvent:

Setting->maven->runner

         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.

 

Similar Posts:

Link of this Article: The problem of chaotic code in idea

Leave a Reply

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