Idea项目application.properties配置文件默认GBK,如何设置默认为UTF-8编码

简述:java程序在项目中一般设置都是UTF-8编码格式,但是项目application.properties 文件默认是GBK,需要手工修改默认编码格式

步骤:

file->setting->editor->file encodings下,勾选transparent native-to-ascll conversion即可,如图所示(记录一下,免得老忘):
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43829047/article/details/131458450
今日推荐