Commit 2c387e32 authored by Yiming Liu's avatar Yiming Liu

Integrate Cat in web

parent 2d0b0e8a
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
<artifactId>framework-foundation</artifactId> <artifactId>framework-foundation</artifactId>
</dependency> </dependency>
<!-- end of foundation service --> <!-- end of foundation service -->
<!-- cat -->
<dependency>
<groupId>com.dianping.cat</groupId>
<artifactId>cat-client</artifactId>
</dependency>
<!-- end of cat -->
<!-- log --> <!-- log -->
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
......
package com.ctrip.apollo.common.controller;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.dianping.cat.servlet.CatFilter;
import com.dianping.cat.servlet.CatListener;
@Configuration
public class CatConfig {
@Bean
public CatFilter catFilter() {
return new CatFilter();
}
@Bean
public CatListener catListener() {
return new CatListener();
}
}
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
<github.path>${project.artifactId}</github.path> <github.path>${project.artifactId}</github.path>
</properties> </properties>
<dependencies> <dependencies>
<!-- cat -->
<dependency>
<groupId>com.dianping.cat</groupId>
<artifactId>cat-client</artifactId>
</dependency>
<!-- end of cat -->
<!-- json --> <!-- json -->
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment