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