eclips环境下开发spring boot项目,application.properties配置文件下中文乱码解决方案

如以上,application.properties文件下中文乱码。发生乱码一般都是由于编码格式不一样导致的。

打开Window-Preferences-General-content Types-Text-Java Properties File,把它的编码格式改为UTF-8,然后接着往下设置

Java Properties File—Spring Properties File ,把它的编码格式也修改为UTF-8。OK,问题搞定。

原文地址:https://www.cnblogs.com/116970u/p/10220274.html