Tomcat could not parse struts.locale setting
刚开始用struts2时,启动tomcat常会出现如下信息:Warning:Could not parse struts.locale setting, substituting default VM locale
这是默认语言环境没有配置:有两种方法可以解决
可以在struts-2.1.6中找struts-2.1.6\src\core\src\test\resources\struts.properties,
最好,通过按F3搜索struts.properties,即可找到
在WEB-INF/struts.properties或者src/struts.properties文件中如下配置:
struts.locale=en_GB
或者在struts.xml中如下配置;
<constant name="struts.locale" value="en_GB" />
页:
[1]