When Spring Boot project file is read yml Chinese, garbled solve the problem in view of the page

In Spring Boot project, we will meet Chinese have put the value of the property in yml configuration file into the page shown above, when the page garbled happens in the Chinese take this value.

Encountered since taking yml Chinese garbled this case on a page, we re-set the encoding encoding tools ok.

IDEA found in the Settings File Encodings, will Plotted red uniform configurations are set to UTF-8, and finally click Apply to apply and ok.

 

Then yml of Chinese fonts will become garbled, re-edit to modify, and then start the project, the page will not appear garbled situation, which is there for yml Chinese values ​​lead to solutions garbled page, I hope useful ~

 

And today we first point,

Next Apollo, a love to share Java, little life,

Let Japan, longer , rivers and lakes destined goodbye, goodbye!

 

Published 114 original articles · won praise 52 · views 120 000 +

Guess you like

Origin blog.csdn.net/pang_ping/article/details/90512328