[Java] 纯文本查看 复制代码
@RequestMapping("/save2")
public void save2(HttpServletResponse response) throws IOException {
response.setContentType("text/html;charset=utf-8");
response.getWriter().write("save2 success!");
}
@RequestMapping("/save3")
@ResponseBody
public String save3(ModelAndView miv){
return "save3 success!";
}