替换Tomcat 7中的RequestDumperValve [英] Replacement for RequestDumperValve in Tomcat 7
问题描述
Tomcat 7不支持Tomcat 6和更早版本提供的RequestDumperValve.
Tomcat 7 does not support the RequestDumperValve that was available Tomcat 6 and earlier.
在Tomcat 7中推荐的替代品是什么?
What is its recommended replacement in Tomcat 7?
推荐答案
回答我自己的问题,更广泛的谷歌搜索提出了这一点:
And to answer my own question, more extensive Googling came up with this:
RequestDumperValve已被RequestDumperFilter取代,后者是 努力用过滤器替换阀门以更符合规范,并且 因此更加灵活.这是您想要的课程: org.apache.catalina.filters.RequestDumperFilter
RequestDumperValve has been replaced by RequestDumperFilter, part of an effort to replace Valves with Filters to be more spec-compliant, and therefore more flexible. This is the class you want: org.apache.catalina.filters.RequestDumperFilter
另请参阅: http://tomcat.apache.org/tomcat-7.0-doc /config/filter.html#Request_Dumper_Filter
请注意,您现在将在web.xml中配置此组件,而不是在 context.xml.
Note that you will configure this component in web.xml, now, and not in context.xml.
这篇关于替换Tomcat 7中的RequestDumperValve的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!