在springMvc有时候需要使用原生的api:
@RequestMapping(value="/testApi") public String testApi(HttpServletRequest req,HttpServletResponse res,Writer out) throws IOException{ System.out.println(req+"/"+res); out.write("hello~"); return SUCCESS; }
原文:http://www.cnblogs.com/csy666/p/7039305.html