Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想过滤使用 url(/aa/*) 输入的远程 IP 地址。我用的是Tomcat6.0。我想知道如何在Tomcat3.6的web.xml中配置过滤器配置。如果可能,请支持样品。提前致谢。
<filter> <filter-name>RequestIDFilter</filter-name> <filter-class>x.y.z.RequestIdFilter</filter-class> </filter> <filter-mapping> <filter-name>RequestIDFilter</filter-name> <url-pattern>/aa/*</url-pattern> </filter-mapping>