2017年3月8日

SpringMVC服务端返回数据

摘要: 下面介绍controller向jsp页面传递数据的几种方式 请求转发 1.在学习MVC之前,用request的setAttribute方法传递数据 在jsp页面用el表达式即可接到数据。 2.用ModelAndView的addObject方法 3.用ModelMap的addAttribute方法 这 阅读全文

posted @ 2017-03-08 20:52 乄清雅轩灬 阅读(2081) 评论(0) 推荐(0) 编辑

导航