|
@@ -13,7 +13,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
* @date 2021/12/2822:06
|
|
* @date 2021/12/2822:06
|
|
*/
|
|
*/
|
|
@Configuration
|
|
@Configuration
|
|
-@Profile("!public")
|
|
|
|
public class JWTInterceptorConfig implements WebMvcConfigurer {
|
|
public class JWTInterceptorConfig implements WebMvcConfigurer {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -31,7 +30,8 @@ public class JWTInterceptorConfig implements WebMvcConfigurer {
|
|
String[] webLogin = new String[]{"/user/authCode", "/user/saveUser", "/user/webLogin", "/user/webUpdatePassword", "/user/*/checkUser"};
|
|
String[] webLogin = new String[]{"/user/authCode", "/user/saveUser", "/user/webLogin", "/user/webUpdatePassword", "/user/*/checkUser"};
|
|
String[] automaticImport = new String[]{"/category/loadCategory", "/subjectInfo", "/importTest", "/subjectInfo/update"};
|
|
String[] automaticImport = new String[]{"/category/loadCategory", "/subjectInfo", "/importTest", "/subjectInfo/update"};
|
|
String[] wxPay = new String[]{"/api/wx-pay/native/notify","/api/wx-pay/refunds/notify"};
|
|
String[] wxPay = new String[]{"/api/wx-pay/native/notify","/api/wx-pay/refunds/notify"};
|
|
- String[] systemApi = new String[]{"/system/login","/user/findUserByStructureNo/**","/system/adminLogin","/system/forgotPassword","/system/registerUser","/institution/newNumber"};
|
|
|
|
|
|
+ String[] systemApi = new String[]{"/system/login","/user/findUserByStructureNo/**","/system/adminLogin","/system/forgotPassword","/system/registerUser",
|
|
|
|
+ "/institution/getAll","/testPlan/**","/user/**","/subject/**","/category/**","/structure/getChildByParent/**","/report/analysis/**"};
|
|
registry.addInterceptor(jwtInterceptor)
|
|
registry.addInterceptor(jwtInterceptor)
|
|
.addPathPatterns("/**")
|
|
.addPathPatterns("/**")
|
|
.excludePathPatterns("/", "/index**", "/error")
|
|
.excludePathPatterns("/", "/index**", "/error")
|