类 UserLogoutSuccessHandler

java.lang.Object
com.cdkjframework.security.handler.UserLogoutSuccessHandler
所有已实现的接口:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler

@Component public class UserLogoutSuccessHandler extends Object implements org.springframework.security.web.authentication.logout.LogoutSuccessHandler
退出登录成功
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
    用户登出返回结果 这里应该让前端清除掉Token

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • UserLogoutSuccessHandler

      public UserLogoutSuccessHandler()
  • 方法详细资料

    • onLogoutSuccess

      public void onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
      用户登出返回结果 这里应该让前端清除掉Token
      指定者:
      onLogoutSuccess 在接口中 org.springframework.security.web.authentication.logout.LogoutSuccessHandler