摘要: (1)springboot中使用MVC拦截器: (2)应用:用户未登录时,编写拦截器使其无法访问部分页面 1.创建拦截器类com.cy.store.interceptor.LoginInterceptor,并实现1.org.springframework.web.servlet.HandlerInt 阅读全文
posted @ 2022-04-06 21:14 卡卡发 阅读(196) 评论(0) 推荐(0)
摘要: request.setAttribute和request.getAttribute;; request.getSession().setAttribute和request.getSession().getAttribute(); 区别:作用域不同 request.getAttribute()只能在一 阅读全文
posted @ 2022-04-06 20:47 卡卡发 阅读(482) 评论(0) 推荐(0)