자바 melody 모니터링 자바 웹 프로젝트 설정

6855 단어
pom. xml
웹. xml
3. spring 프로필 추가 
trade-monitoring.xml
수정 
application-context.xml
<
import 
resource=
"classpath:spring/trade-monitoring.xml"
/>
<dependency>
<groupId>net.bull.javamelodygroupId>
<artifactId>javamelody-coreartifactId>
<version>1.47.0version>
dependency>
<dependency>
<groupId>org.jrobingroupId>
<artifactId>jrobinartifactId>
<version>1.5.9version>
dependency>
<filter>
<filter-name>monitoringfilter-name>
<filter-class>net.bull.javamelody.MonitoringFilterfilter-class>
<init-param>
<param-name>logparam-name>
<param-value>trueparam-value>
init-param>
filter>
<filter-mapping>
<filter-name>monitoringfilter-name>
<url-pattern>/*url-pattern>
filter-mapping>
<listener>
<listener-class>net.bull.javamelody.SessionListenerlistener-class>
listener>
xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

<bean id="springDataSourceBeanPostProcessor" class="net.bull.javamelody.SpringDataSourceBeanPostProcessor">

bean>

<bean id="wrappedDataSource" class="net.bull.javamelody.SpringDataSourceFactoryBean">
<property name="targetName" value="datasource" /> --
bean>
beans>

좋은 웹페이지 즐겨찾기