The reason a
The first possibility is that your application.yml file is encoded in utF-8, as follows:
Reason two
The second possibility is that your application. Yml file was created by changing the suffix of another type of file to yml. In this case, you need to copy all the contents of application. No errors will be reported if the copied content is copied in and then the project is run.