struts2 在发开时,控制台如输出大量警告信息,太烦人了,内容如下 :
16:51:44,170 WARN OgnlValueStack:45 - Could not find property [struts.valueStack]
16:51:44,184 WARN OgnlValueStack:45 - Could not find property [.freemarker.Request]
16:51:44,184 WARN OgnlValueStack:45 - Could not find property [.freemarker.RequestParameters]
16:51:44,293 WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
解决:加入log4j.jar包,设置log4j.properties文件中加入:
log4j.logger.com.opensymphony.xwork2=ERROR