• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






wudingyou945

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2020年5月28日

SpringMVC的五种请求传参方式
摘要: 1、传统传参方式 方法参数中使用request,通过request.getParameter("参数名"),再封装到bean中@RequestMapping("/test01") public ModelAndView test01(HttpServletRequest request){ Stri 阅读全文
posted @ 2020-05-28 23:30 wudingyou945 阅读(338) 评论(0) 推荐(0)
 
SpringMVC四种响应传值的方式
摘要: 1、返回值为void类型 使用方法的参数requesr和response进行数据分享和页面跳转@RequestMapping("/test1") public void test1(HttpServletRequest request, HttpServletResponse response) t 阅读全文
posted @ 2020-05-28 23:28 wudingyou945 阅读(279) 评论(0) 推荐(0)