zjh
2025-02-13 955a66eec02b8c3fde019110d9c1b604eac017e5
ltkj-framework/src/main/java/com/ltkj/framework/config/WebConfig.java
@@ -1,7 +1,5 @@
package com.ltkj.framework.config;
import com.ltkj.framework.interceptor.DBChangeInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -13,10 +11,6 @@
//定义拦截器
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Autowired
    private DBChangeInterceptor dbChangeInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new TokenInterceptor())
@@ -28,10 +22,8 @@
                        "/cus/package/projectListByPacId/**",
                        "/cus/hospital/getHospList",
                        "/lis/**","/api/His/**","/pacs/**",
                        "/callBack/**"
                        "/callBack/**",
                        "/hosp/order/signOrderInfo"
                });
        registry.addInterceptor(dbChangeInterceptor)
                .addPathPatterns("/**");
    }
}