Servlet filters 更改URL映射-Javamelody
我正在应用程序中使用Javamelody。我只需要根用户访问统计信息。默认情况下,您可以访问Servlet filters 更改URL映射-Javamelody,servlet-filters,java-melody,Servlet Filters,Java Melody,我正在应用程序中使用Javamelody。我只需要根用户访问统计信息。默认情况下,您可以访问 http://localhost/webapp/monitoring 我需要把它改成 http://localhost/webapp/monitor/monitoring 我已经完成了以下过滤器映射 <filter> <filter-name>monitoring</filter-name> <filter-class>net.bull
http://localhost/webapp/monitoring
我需要把它改成
http://localhost/webapp/monitor/monitoring
我已经完成了以下过滤器映射
<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>
监测
net.bull.javamelody.MonitoringFilter
监测
/*
net.bull.javamelody.SessionListener
监测
net.bull.javamelody.MonitoringFilter
监测路径
/行政/监察
inside/monitoring我们将路径写入监视器。我说的对吗?@gstackoverflow不,这是一个模式,适用于所有应该应用过滤器的URL(要监视的URL)。监视器的路径在答案中指定。
<filter>
<filter-name>monitoring</filter-name>
<filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
<init-param>
<param-name>monitoring-path</param-name>
<param-value>/admin/monitoring</param-value>
</init-param>
</filter>