Chinese garbled characters appear when the spring boot project in IDEA reads the properties file

Chinese garbled characters appear when the spring boot project in IDEA reads the properties file

Solution

Insert picture description here
IDEA has advanced advantages, and there is the option of Transparent native-to-ascii conversion, which
is to convert utf-8 file encoding to ASCII encoding

If after following the above settings, restart the service, restart IDEA, the access is still garbled
, delete the previously created properties file and recreate it

Another solution is to change the application.properties configuration file to application.yaml file

Guess you like

Origin blog.csdn.net/qq_43416157/article/details/107804411