摘要:
认证成功处理器 实际上在UsernamePasswordAuthenticationFilter进行登录认证的时候,如果登录成功了是会调用AuthenticationSuccessHandler的方法进行认证成功后的处理的。AuthenticationSuccessHandler就是登录成功处理器。 阅读全文 »
摘要:
自定义权限校验方法 我们也可以定义自己的权限校验方法。在@PreAuthorize注解中使用我们的方法。 创建expression包,在该包下创建SGEexpression类 @Component("ex") public class SGEexpression { public boolean h 阅读全文 »