1.spring 配置
新建 applicationContext-messages.xml
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<value>message/messages</value> //路径 对应的properties名字 要这样 messages_zh_CN.properties
</property>
</bean>
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver"> //接收用户的系统对应的语言
2.properties编码工具
http://www.418log.org/tools/native2ascii.html