方法一:
今日做了个struts验证小程序,显示ApplicationResources.properties中汉字提示信息,结果显示乱码。怎么也没解决,后来发现一个插件Poperties Editor,只要装上,就可以自动解决这个问题。下面找了安装方法:
Poperties Editor介绍
一个在编辑完成后可以将资源文件中的中文编码格式转换为unicode编码的插件,在开发国际化应用程序的时候非常有用
http://propedit.sourceforge.jp/eclipse/updates/
安装方法:在线安装Poperties Editor
启动eclipse,点菜单Help -> SoftWare Updates -> find and install->选中Search for new features to install ->next->点击 New Remote site->给这个更新站点取个名字 如:luanma,url填写http://propedit.sourceforge.jp/eclipse/updates即可。->点击ok->选中刚才新加的站点名称,点击finish->他会自动找出与你所用的eclipse版本相适应的插件全部选中->后面只要选择install all即可
->最后会提示你重起你的eclipse
所有的properties文件名的前面都有一个绿色的p字.
注意:当你安装完之后,那个properties文件里有中文,你编译之后它自动就会转化了。
方法二:
native2ascii ApplicationResources.properties new.properites
用new.properities就行了
分享到:
相关推荐
解决Struts中ApplicationResources.properties文件不支持中文问题
NULL 博文链接:https://jzgl-javaeye.iteye.com/blog/390873
activiti和springboot整合只使用application.properties配置文件,解决了jdbc长时间待机连接被收回报错。使用springProcessEngineConfiguration对activiti管理
ApplicationResources.txt
application.properties 之配置大全---- application.properties 之配置大全
springBoot常用application.properties基础配置大全
可以编辑资源文件中的中文,不用再看一堆Unicode码了。 可用于eclipse 3.X ... 例:在ApplicationResources.properties上点右键,open with选PropertiesEditor就可以在ApplicationResources.properties写中文了
IDEA WEB项目启动不加载application.properties配置文件,yml配置文件是否也会不加载未尝试,如果有遇到的可以尝试一下。
CodeResource\src\com\publish\shop\ApplicationResources.txt.bak
application-prod.properties
spring boot 配置文件
application.properties最全配置附加备注
Spring-Boot-application.properties 描述,中文解释springboot 的application.properties 中每个配置是什么意思。
2_application.properties
RocketMQ控制台--application.properties
SpringBoot项目的application.properties配置文件
native2ascii -reverse ApplicationResources_zh.properties ApplicationResources_zh2.properties 然后就可以改汉化了。改完之后反编码。 注意两次参数和文件名的变化。 native2ascii ApplicationResources_zh2....