当前位置:网站首页>Idea solves garbled Chinese output of YML configuration file

Idea solves garbled Chinese output of YML configuration file

2020-11-09 12:49:28 Tian Qiao Ba Xia

development tool

IDEA2020.3

The abnormal conditions are as follows

The default encoding for known items is UTF-8, and yml The default encoding method of is GBK.

stay yml Middle configuration com.hyh.name The value is God, jojobasha .

adopt @Value("${com.hyh.name}") Read , The problem of Chinese garbled code .

Problem solving

File -> Settings -> Editor -> File Encodings

版权声明
本文为[Tian Qiao Ba Xia]所创,转载请带上原文链接,感谢