| | |
| | | //添加要拦截的url |
| | | registry.addInterceptor(licenseCheckInterceptor) |
| | | // 拦截的路径 |
| | | .addPathPatterns("/**") |
| | | .addPathPatterns("/sys/login"); |
| | | // 放行的路径 |
| | | .excludePathPatterns("/swagger-resources/**", "/webjars/**", "/v2/**", "/swagger-ui.html/**", "/doc.html")//swagger |
| | | .excludePathPatterns("/base/license/**");//生成license和获取服务器硬件信息 |
| | | // .excludePathPatterns("/swagger-resources/**", "/webjars/**", "/v2/**", "/swagger-ui.html/**", "/doc.html")//swagger |
| | | // .excludePathPatterns("/base/license/**");//生成license和获取服务器硬件信息 |
| | | } |
| | | } |