1. The garbled code may be caused by the incompatibility of the encoding format, mainly due to the matching between Eclipse console encoding and log4j encoding.
log4j.properties
The main thing is to check whether the encoding in these two places is consistent and inconsistent. If it is inconsistent, manually change it to a consistent encoding, GBK or UTF-8.