提交 2c387e32 编写于 作者: Y Yiming Liu

Integrate Cat in web

上级 2d0b0e8a
......@@ -27,12 +27,6 @@
<artifactId>framework-foundation</artifactId>
</dependency>
<!-- end of foundation service -->
<!-- cat -->
<dependency>
<groupId>com.dianping.cat</groupId>
<artifactId>cat-client</artifactId>
</dependency>
<!-- end of cat -->
<!-- log -->
<dependency>
<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 @@
<github.path>${project.artifactId}</github.path>
</properties>
<dependencies>
<!-- cat -->
<dependency>
<groupId>com.dianping.cat</groupId>
<artifactId>cat-client</artifactId>
</dependency>
<!-- end of cat -->
<!-- json -->
<dependency>
<groupId>com.google.code.gson</groupId>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册