Eclipse中SpringBoot配置文件中文乱码解决

在Eclipse中进行如下菜单设置:

Window --->  Preferences --->  General --->  Content Types,右侧Text ---->  java Properites File 在Default encoding中输入utf-8,点击Update。

如果自定义配置文件未更新编码格式,可在属性中手动设置为utf-8。

再次进行粘贴乱码问题得以解决。
 

发布了171 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/duan196_118/article/details/105055767