springboot中的application.properties中的属性乱码
1.先配置;
设置 File Encodings的Transparent native-to-ascii conversion为true,具体步骤如下:依次点击
File -> Settings -> Editor -> File Encodings
将Properties Files (*.properties)下的Default encoding for properties files设置为UTF-8,将Transparent native-to-ascii conversion前的勾选上;
2.(一定要)重新新建一个配置文件application.properties;
网友评论