3
我在我的應用程序中使用Javamelody。我只需要root用戶訪問統計信息。 Javamelody默認情況下,您可以訪問更改URL映射-Javamelody
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>
裏面** /監控 url-pattern> **我們編寫監視路徑。我對嗎? –
gstackoverflow
2015-08-29 13:01:25
@gstackoverflow不,這是應用過濾器的所有URL的模式(要監視的URL)。監視路徑與答案中指定的一樣。 – Yuriy 2017-04-13 13:58:55