Garbled characters are caused by no fonts installed on the server
1. Check the Chinese font
fc-list:lang=zh
2. Install font
yum -y install fontconfig
#Install font library yum -y install ttmkfdir mkfontscale #Install font index information
Windows can copy the font directory: C: \ Windows \ Fonts
If your code is written, Times New Roman, you can download my resources font download
3. Linux font directory: /usr/share/fonts, it is recommended to create a directory mkdir chinese to put Chinese fonts
4. Upload the font to the /usr/share/fonts/chinese directory
5. Then execute the command in /usr/share/fonts/chinese to generate the font index information
mkfontscale
mkfontdir
6. Update the font cache
fc-cache
fc-cache -fv
source /etc/profile
. /Etc/profile
Use fc-list:lang=zh to view the installed Chinese fonts
Restart the springboot workflow and get it done.