Idea project application.properties configuration file defaults to GBK, how to set the default encoding to UTF-8

Brief description: Java programs are generally set to UTF-8 encoding format in projects, but the project application.properties file defaults to GBK, and the default encoding format needs to be modified manually.

step:

Under file->setting->editor->file encodings, just check transparent native-to-ascll conversion, as shown in the figure (record it so you don’t forget it):
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43829047/article/details/131458450