除去strtus ognl.MethodFailedException WARN

去除strtus ognl.MethodFailedException WARN?由于这个错误不影响前台运行第一种解决方案(这种比较简单):

去除strtus ognl.MethodFailedException WARN

?

由于这个错误不影响前台运行

第一种解决方案(这种比较简单):

在log4j.properties文件中添加以下句子,来屏蔽控制台显示错误:

# Struts OgnlUtil issues unimportant warnings?
log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error?
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=error