摘要: Constructs a cookie with a specified name and value.The name must conform to RFC 2109. That means it can contain only ASCII alphanumeric characters an 阅读全文
posted @ 2020-06-19 18:57 大浩 阅读(1667) 评论(0) 推荐(0)
摘要: modelAndView.addObject("loginUser", user); loginUser里面有username属性 当我们想获取username时,需要加上if判断,即判断loginUser不为null <th:block th:if="${loginUser!= null}"> < 阅读全文
posted @ 2020-06-19 18:47 大浩 阅读(2553) 评论(0) 推荐(0)