- @ResponseBody@RequestMapping(value = {
- "searchUsers.htm"
- },
- method = RequestMethod.POST, produces = "text/html;charset=UTF-8") public String searchUsers(@ModelAttribute User user, Integer currentPage) throws JsonGenerationException,
- JsonMappingException,
- IOException {
- PageData pageData = userService.serchUsers(user, currentPage);
- return JSONUtil.getEscapeJSONString(pageData);
- }
来源: http://www.bubuko.com/infodetail-2125274.html