weshop
weshop copied to clipboard
怎么添加针对登陆的拦截器?
在framework里面添加拦截器 @Override public void addInterceptors(InterceptorRegistry registry) { //添加登陆拦截器 List<String> patterns = new ArrayList<>(); //patterns.add("/admin/user/login"); String[] allowUrls = {}; JwtAuthInterceptor authInterceptor = new JwtAuthInterceptor(); registry.addInterceptor(authInterceptor) .addPathPatterns("/**") .excludePathPatterns(patterns); } 然后打断点,并没有跳进去,那应该要怎么调试?