//package com.backendsys.modules.common.config.Security.handler;
//
//import jakarta.servlet.http.HttpServletRequest;
//import jakarta.servlet.http.HttpServletResponse;
//import org.springframework.security.core.Authentication;
//import org.springframework.security.web.authentication.logout.LogoutHandler;
//import org.springframework.stereotype.Component;
//
//@Component
//public class __CustomLogoutHandler implements LogoutHandler {
//    @Override
//    public void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {
//
//        // 访问 http://localhost:48080/api/auth/logout 时
//        System.out.println("进入 CustomLogoutHandler");
//        System.out.println(authentication);
//        return ;
//
////        if(authentication != null)
////        {
////            username = SecurityUtils.getUsername(authentication);
////            System.out.println("获得当前登录用户名:"+username);
////            //...操作数据库的代码省略
////        }
////        else
////        {
////            System.out.println("authentication is null");
////            return;
////        }
//
//
//    }
//}
