在struts2項(xiàng)目中,我啟動(dòng)服務(wù)器tomcat,總是出現(xiàn) 警告: Settings: Could not parse struts.locale setting, substituting default VM locale 有時(shí)候就因?yàn)檫@樣服務(wù)器都啟動(dòng)不了,煩得很,不知道你們遇到過(guò)此問(wèn)題沒(méi)有,是什么原因出現(xiàn)此類問(wèn)題呀,有什么解決方法嗎?
在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問(wèn)題解決。
struts.locale=en_UTF-8 或 struts.locale=zh_UTF-8