Spring boot读取application.properties中文乱码

解决方案

java开发工具Idea下解决方案:

File -> Settings -> Editor -> File Encodings

将Properties Files (*.properties)下的Default encoding for properties files设置为UTF-8,将Transparent native-to-ascii conversion前的勾选上。

注意:做了上面操作后,一定要重新创建application.properties,才有效。

Spring boot读取application.properties中文乱码

上一篇:Sqli labs less 40


下一篇:【错误解决】BeanDefinitionStoreException: Failed to read candidate component class: file [mapper.class文件]; nested exception is java.lang.IllegalArgumentException