在struts2項目中,我啟動服務器tomcat,總是出現 警告: Settings: Could not parse struts.locale setting, substituting default VM locale 有時候就因為這樣服務器都啟動不了,煩得很,不知道你們遇到過此問題沒有,是什么原因出現此類問題呀,有什么解決方法嗎?
在WEB-INF/struts.properties或者src/struts.properties文件中如下配置:
struts.locale=en_GB
或者在struts.xml中如下配置;
<constant name="struts.locale" value="en_GB" />
Could not parse struts.locale setting問題解決。
struts.locale=en_UTF-8 或 struts.locale=zh_UTF-8