摘要: 方式一: ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); HttpServletRequest req 阅读全文
posted @ 2020-01-14 16:37 铭ㅤ 阅读(328) 评论(0) 推荐(0)
摘要: 1.跨域身份验证 Internet服务无法与用户身份验证分开。一般过程如下。 1.用户向服务器发送用户名和密码。 2.验证服务器后,相关数据(如用户角色,登录时间等)将保存在当前会话中。 3.服务器向用户返回session_id,session信息都会写入到用户的Cookie。 4.用户的每个后续请 阅读全文
posted @ 2020-01-09 16:53 铭ㅤ 阅读(145) 评论(0) 推荐(0)