weshop icon indicating copy to clipboard operation
weshop copied to clipboard

怎么添加针对登陆的拦截器?

Open 892744577 opened this issue 5 years ago • 0 comments

在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); } 然后打断点,并没有跳进去,那应该要怎么调试?

892744577 avatar Apr 19 '19 06:04 892744577