假设我需要添加以下过滤器映射以通过javamelody监视webapp
<filter>
<filter-name>monitoring</filter-name>
<filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>monitoring</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener>
但我不想将过滤器添加到每个tomcat实例web.xml文件中。有没有办法实现这个目标?