摘要: 域对象共享数据 1、使用ServletAPI向request域对象共享数据 @RequestMapping("/testServletAPI")public String testServletAPI(HttpServletRequest request){ request.setAttribute 阅读全文
posted @ 2022-03-22 23:06 durtime 阅读(30) 评论(0) 推荐(0)
摘要: SpringMVC获取请求参数 1、通过ServletAPI获取 将HttpServletRequest作为控制器方法的形参,此时HttpServletRequest类型的参数表示封装了当前请求的请求报文的对象 @RequestMapping("/testParam")public String t 阅读全文
posted @ 2022-03-22 23:00 durtime 阅读(31) 评论(0) 推荐(0)