![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringMVC
peter_qyq
奋斗
展开
-
SpringMVC Controller 返回值的可选类型
spring mvc 支持如下的返回方式:ModelAndView, Model, ModelMap, Map,View, String, void。 ModelAndView@RequestMapping("/hello") public ModelAndView helloWorld() { String message = "Hello World,转载 2016-07-22 10:48:38 · 222 阅读 · 0 评论 -
springMVC实现ajax分页
服务端代码/** * 付费问题 * * @return */ @RequestMapping(value = "/questionPay/{id}.html", produces = "text/html;charset=UTF-8") public String questionPay(@PathVariable Long id, ModelMap model, Htt原创 2016-12-13 15:23:00 · 1635 阅读 · 0 评论