摘要: @RequestMapping("getUser") public void getUser(HttpServletRequest req){ String remoteUser=req.getRemoteUser(); Authentication auth=(Authentication) re 阅读全文
posted @ 2022-06-16 10:48 JavaShop 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); System.out.println("authentication.getClass() = " + authentica 阅读全文
posted @ 2022-06-16 10:29 JavaShop 阅读(443) 评论(0) 推荐(0) 编辑