码迷,mamicode.com
首页 > 编程语言 > 详细

springmvc redirect 调用外部接口进行下载

时间:2015-01-06 15:57:27      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

代码如下:


@RequestMapping("/down")
	public ModelAndView downApp(HttpServletResponse response,
			HttpServletRequest request) {
	    ModelAndView modelAndView = new ModelAndView( "redirect:stackoverflow.com" );
	    Map<String, Object> model = modelAndView.getModel();
	    model.put( "name", "fengshu" );
	    return new ModelAndView( "redirect:http://192.168.8.141:9092/iflashbuy_F2B/rest/upload/down", model );
	}



springmvc redirect 调用外部接口进行下载

标签:

原文地址:http://my.oschina.net/fengshuzi/blog/364222

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!