标签:list lte web项目 pom async isp sync http filter
1、在工程的maven pom中添加依赖javamelody-core
<!-- monitoring监控 -->
<!-- https://mvnrepository.com/artifact/net.bull.javamelody/javamelody-core -->
<dependency>
<groupId>net.bull.javamelody</groupId>
<artifactId>javamelody-core</artifactId>
<version>1.68.1</version>
</dependency>
2、在web.xml中添加filter和listener
<listener>
<listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener>
<filter>
<filter-name>javamelody</filter-name>
<filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>javamelody</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ASYNC</dispatcher>
</filter-mapping>
如何在web项目中添加javamelody monitoring 监控。
标签:list lte web项目 pom async isp sync http filter
原文地址:http://www.cnblogs.com/laoqing/p/7221312.html