| | |
| | | |
| | | //import com.ltkj.framework.interceptor.DBChangeInterceptor; |
| | | import com.ltkj.framework.interceptor.DBChangeInterceptor; |
| | | import com.ltkj.framework.interceptor.JimuInterceptor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.http.HttpMethod; |
| | |
| | | |
| | | @Autowired |
| | | private DBChangeInterceptor dbChangeInterceptor; |
| | | @Autowired |
| | | private JimuInterceptor jimuInterceptor; |
| | | |
| | | @Override |
| | | public void addInterceptors(InterceptorRegistry registry) { |
| | |
| | | "/cus/package/projectListByPacId/**", |
| | | "/cus/hospital/getHospList", |
| | | "/lis/**","/api/His/**","/pacs/**", |
| | | "/callBack/**" |
| | | "/callBack/**", |
| | | "/api/viewReport", |
| | | "/api/reportData", |
| | | "/api/getInfo" |
| | | }); |
| | | |
| | | registry.addInterceptor(dbChangeInterceptor) |
| | | .addPathPatterns("/**") |
| | | .excludePathPatterns(new String[]{ |
| | | "/cus/hospital/getHospList", |
| | | "/cus/wx/login", |
| | | "/cus/banner/getBannerList", |
| | | "/system/dict/data/**", |
| | | "/system/dict/type/**", |
| | | "/captchaImage","/getCaptchaConfigKey/**", |
| | | "/system/role/execUpdateSql" |
| | | // , |
| | | // "/login", "/register", "/captchaImage","/cus/**","/getCaptchaConfigKey","/report/jmreport/**", |
| | | // "/sqlserver/getdata/**","/api/His/**","/system/config/zx","/system/config/gxxmpym","/system/report/savePdf", |
| | | // "/system/dyjl/saveGjddyjl","/system/dyjl/saveBlGjddyjl","/check/ceshi","/check/pacs","/check/ceshicc", |
| | | // "/common/uploadImgExe","/common/listExeVal","/pacs/InvokeRisService/**","/check/dataSynchronizationApi", |
| | | // String.valueOf(HttpMethod.GET), "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**", |
| | | // "/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/jmreport/**","/lis/**","/pacs/**","/callBack/**" |
| | | "/system/role/execUpdateSql", |
| | | "/jmreport/**", |
| | | "/**/*.html", "/**/*.css", "/**/*.js","/swagger-ui.html", |
| | | "/swagger-resources/**", "/*/api-docs", "/webjars/**" |
| | | }); |
| | | |
| | | registry.addInterceptor(jimuInterceptor) |
| | | .addPathPatterns("/jmreport/**"); |
| | | } |
| | | } |