pringMvc-使用原生api

在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; }

 

posted @ 2017-06-17 08:54  小拽A  阅读(183)  评论(0编辑  收藏  举报