摘要:
###接收属性 Object loginUser = request.getSession().getAttribute("loginUser"); ###发送属性 session.setAttribute("loginUser",userName); import org.springframew 阅读全文
posted @ 2022-05-19 21:00
小幼虫虫
阅读(70)
评论(0)
推荐(0)
摘要:
##1.提取公共页面 给提取部分取名 th:fragment="topbar" 添加提取部分 <!--引用dashboard的侧边导航栏--> <div th:insert="~{comment/comment::topbar(active='list.html')}"></div> 如果要传递参数 阅读全文
posted @ 2022-05-19 17:21
小幼虫虫
阅读(180)
评论(0)
推荐(0)
摘要:
##创建一个拦截器 import org.springframework.web.servlet.HandlerInterceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServl 阅读全文
posted @ 2022-05-19 15:26
小幼虫虫
阅读(142)
评论(0)
推荐(0)

浙公网安备 33010602011771号