You've already forked FrameTour-BE
refactor(stats): 移除统计追踪模块相关代码
- 删除 StatsBiz 业务类 - 移除 TraceController 控制器及其接口实现 - 删除 AddTraceReq 数据传输对象 - 移除 StatsEntity 和 StatsRecordEntity 实体类 - 移除 StatsInterceptor 拦截器 - 删除 StatsMapper 和 StatsRecordMapper 数据访问接口 - 移除 StatsService 服务接口及 StatsServiceImpl 实现类 - 删除 StatsUtil 工具类
This commit is contained in:
@@ -3,7 +3,6 @@ package com.ycwl.basic.config;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.module.SimpleModule;
|
||||
import com.ycwl.basic.interceptor.AuthInterceptor;
|
||||
import com.ycwl.basic.stats.interceptor.StatsInterceptor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -25,11 +24,8 @@ import java.util.List;
|
||||
*/
|
||||
@Configuration
|
||||
public class WebMvcConfig implements WebMvcConfigurer {
|
||||
|
||||
@Autowired
|
||||
private AuthInterceptor authInterceptor;
|
||||
@Autowired
|
||||
private StatsInterceptor statsInterceptor;
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
@@ -37,8 +33,6 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
||||
// 拦截除指定接口外的所有请求,通过判断 注解 来决定是否需要做登录验证
|
||||
.addPathPatterns("/**")
|
||||
.excludePathPatterns("/swagger-resources/**", "/webjars/**", "/v2/api-docs", "/doc.html/**", "/error", "/");
|
||||
registry.addInterceptor(statsInterceptor)
|
||||
.addPathPatterns("/api/mobile/**");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user