Fill in Chinese information in application.properties, and Chinese garbled problems will occur when reading the file.
For example: application.properties content:
student.name=well-off student.age=15
Solution: I am using IDEA, first File->settings->Code style->File Encoding
Just set all encodings to UTF-8.
Run again and get normal results:
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.