首页 > 代码库 > springmvc redirect 调用外部接口进行下载

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

代码如下:


@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 调用外部接口进行下载