需求的产生:我们在编辑struts的资源文件,即ApplicationResource.properties这个文件的时候,无法保存中文,很是头痛。这个问题可以通过先把中文转为unicode码,再把unicode码粘贴到该文件中的方法来解决。如:你想写user.username=用户名,只能这样写user.username=\u7528\u6237\u540d
但是这样很麻烦,而且条目多了,自己都看不懂,更不用说别人了。
永久地解决这个问题我们可以下载并安装这个插件到IDE(eclipse):
Properties Editor
下载地址:
http://propedit.sourceforge.jp/index_en.html
我们通过Eclipse自动安装的方式来安装这个插件
第一步:
Help-->Software Updates-->Find and Install-->Search for new features to install-->New Remote Site-->name:这是一个插件名 URL:http://propedit.sourceforge.jp/eclipse/updates/
第二步:
接下来、点击Finish.刚如图选中相应功能

