The garbled code is shown in the figure:

Specific solutions are as follows:

Idea shortcut keys Ctrl+Alt+S to open Setting, press

Setting->Maven->Runner VMoptions: -dfile. encoding=GB2312 Setting->Maven->Runner VMoptions: -dfile. encoding=GB2312

So the garbled code is solved.