@Test public void testhandle81() { RestTemplate restTemplate = new RestTemplate(); MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>(); form.add("user", "tom:123456:tomson"); String html = restTemplate.postForObject( "http: Assert.assertNotNull(html); Assert.assertTrue(html.indexOf("tom") > -1); }
@RequestMapping(value = "/handle81") public String handle81(@RequestParam("user") User user, ModelMap modelMap) { modelMap.put("user", user); return "/user/showUser"; }
UserController { @RequestMapping(value = "/handle81") public String handle81(@RequestParam("user") User user, ModelMap modelMap) { modelMap.put("user", user); return "/user/showUser"; } }
UserController { @RequestMapping(value = "/handle81") public String handle81(@RequestParam("user") User user, ModelMap modelMap) { modelMap.put("user", user); return "/user/showUser"; }  }
UserController { @RequestMapping(value = "/handle81") public String handle81(@RequestParam("user") User user, ModelMap modelMap) { modelMap.put("user", user); return "/user/showUser"; }  @Autowired void setUserService(UserService userService); @RequestMapping(method = RequestMethod.POST) ModelAndView createUser(User user); @RequestMapping(value = "/register", method = RequestMethod.GET, params = "!myParam") String register(@ModelAttribute("user") User user); @RequestMapping(value = "/delete", method = RequestMethod.POST, params = "userId") String test1(@RequestParam("userId") String userId); @RequestMapping(value = "/show", headers = "content-type=text/*") String test2(@RequestParam("userId") String userId); @RequestMapping(value = "/handle1") String handle1(@RequestParam("userName") String userName,
			@RequestParam("password") String password,
			@RequestParam("realName") String realName); @RequestMapping(value = "/handle2") ModelAndView handle2(@CookieValue("JSESSIONID") String sessionId,
			@RequestHeader("Accept-Language") String accpetLanguage); @RequestMapping(value = "/handle3") String handle3(User user); @RequestMapping(value = "/handle4") String handle4(HttpServletRequest request); @RequestMapping(value = "/handle11") String handle11(
			@RequestParam(value = "userName", required = false) String userName,
			@RequestParam("age") int age); @RequestMapping(value = "/handle12") String handle12(
			@CookieValue(value = "sessionId", required = false) String sessionId,
			@RequestParam("age") int age); @RequestMapping(value = "/handle13") String handle13(@RequestHeader("Accept-Encoding") String encoding,
			@RequestHeader("Keep-Alive") long keepAlive); @RequestMapping(value = "/handle14") String handle14(User user); @RequestMapping(value = "/handle21") void handle21(HttpServletRequest request,
			HttpServletResponse response); @RequestMapping(value = "/handle22") ModelAndView handle22(HttpServletRequest request); @RequestMapping(value = "/handle23") String handle23(HttpSession session); @RequestMapping(value = "/success") String success(); @RequestMapping(value = "/fail") String fail(); @RequestMapping(value = "/handle24") String handle24(HttpServletRequest request,
			@RequestParam("userName") String userName); @RequestMapping(value = "/handle25") String handle25(WebRequest request); @RequestMapping(value = "/handle31") void handle31(OutputStream os); @RequestMapping(value = "/handle41") String handle41(@RequestBody String body); @ResponseBody @RequestMapping(value = "/handle42/{imageId}") byte[] handle42(@PathVariable("imageId") String imageId); @RequestMapping(value = "/handle43") String handle43(HttpEntity<String> requestEntity); @RequestMapping(value = "/handle44/{imageId}") ResponseEntity<byte[]> handle44(
			@PathVariable("imageId") String imageId); @RequestMapping(value = "/handle51") ResponseEntity<User> handle51(HttpEntity<User> requestEntity); @RequestMapping(value = "/handle61") String handle61(@ModelAttribute("user") User user); @RequestMapping(value = "/handle62") String handle62(@ModelAttribute("user") User user); @RequestMapping(value = "/handle63") String handle63(ModelMap modelMap); @ModelAttribute("user") User getUser(); @ModelAttribute("user1") User getUser1(); @ModelAttribute("user2") User getUser2(); @ModelAttribute("dept") Dept getDept(); @RequestMapping(value = "/handle71") String handle71(@ModelAttribute("user") User user); @RequestMapping(value = "/handle72") String handle72(ModelMap modelMap, SessionStatus sessionStatus); @RequestMapping(value = "/handle81") String handle81(@RequestParam("user") User user, ModelMap modelMap); @RequestMapping(value = "/register2") String register2(User user); @RequestMapping(value = "/handle82") String handle82(User user); @RequestMapping(value = "/register3") String register3(); @RequestMapping(value = "/register4") String register4(); @RequestMapping(value = "/handle91") String handle91(@Valid @ModelAttribute("user") User user,
			BindingResult bindingResult, ModelMap mm); @RequestMapping(value = "/handle92") String handle92(@ModelAttribute("user") User user,
			BindingResult bindingResult); @RequestMapping(value = "/welcome") String handle100(); @RequestMapping(value = "/showUserList") String showUserList(ModelMap mm); @RequestMapping(value = "/showUserListByFtl") String showUserListInFtl(ModelMap mm); @RequestMapping(value = "/showUserListByXls") String showUserListInExcel(ModelMap mm); @RequestMapping(value = "/showUserListByPdf") String showUserListInPdf(ModelMap mm); @RequestMapping(value = "/showUserListByXml") String showUserListInXml(ModelMap mm); @RequestMapping(value = "/showUserListByJson") String showUserListInJson(ModelMap mm); @RequestMapping(value = "/showUserListByJson1") String showUserListInJson1(ModelMap mm); @RequestMapping(value = "/showUserListByI18n") String showUserListInI18n(ModelMap mm); @RequestMapping(value = "/showUserListMix") String showUserListMix(ModelMap mm); @RequestMapping(value = "/uploadPage") String updatePage(); @RequestMapping(value = "/upload") String updateThumb(@RequestParam("name") String name,
			                  @RequestParam("file") MultipartFile file); @RequestMapping(value = "/throwException") String throwException(); @ExceptionHandler(RuntimeException.class) String handleException(RuntimeException re, HttpServletRequest request); @RequestMapping(value = "/notFound") String notFound(); @ResponseStatus(HttpStatus.NOT_FOUND) String notFound(HttpServletRequest request); @InitBinder void initBinder(WebDataBinder binder); }
UserController { @RequestMapping(value = "/handle81") public String handle81(@RequestParam("user") User user, ModelMap modelMap) { modelMap.put("user", user); return "/user/showUser"; }  @Autowired void setUserService(UserService userService); @RequestMapping(method = RequestMethod.POST) ModelAndView createUser(User user); @RequestMapping(value = "/register", method = RequestMethod.GET, params = "!myParam") String register(@ModelAttribute("user") User user); @RequestMapping(value = "/delete", method = RequestMethod.POST, params = "userId") String test1(@RequestParam("userId") String userId); @RequestMapping(value = "/show", headers = "content-type=text/*") String test2(@RequestParam("userId") String userId); @RequestMapping(value = "/handle1") String handle1(@RequestParam("userName") String userName,
			@RequestParam("password") String password,
			@RequestParam("realName") String realName); @RequestMapping(value = "/handle2") ModelAndView handle2(@CookieValue("JSESSIONID") String sessionId,
			@RequestHeader("Accept-Language") String accpetLanguage); @RequestMapping(value = "/handle3") String handle3(User user); @RequestMapping(value = "/handle4") String handle4(HttpServletRequest request); @RequestMapping(value = "/handle11") String handle11(
			@RequestParam(value = "userName", required = false) String userName,
			@RequestParam("age") int age); @RequestMapping(value = "/handle12") String handle12(
			@CookieValue(value = "sessionId", required = false) String sessionId,
			@RequestParam("age") int age); @RequestMapping(value = "/handle13") String handle13(@RequestHeader("Accept-Encoding") String encoding,
			@RequestHeader("Keep-Alive") long keepAlive); @RequestMapping(value = "/handle14") String handle14(User user); @RequestMapping(value = "/handle21") void handle21(HttpServletRequest request,
			HttpServletResponse response); @RequestMapping(value = "/handle22") ModelAndView handle22(HttpServletRequest request); @RequestMapping(value = "/handle23") String handle23(HttpSession session); @RequestMapping(value = "/success") String success(); @RequestMapping(value = "/fail") String fail(); @RequestMapping(value = "/handle24") String handle24(HttpServletRequest request,
			@RequestParam("userName") String userName); @RequestMapping(value = "/handle25") String handle25(WebRequest request); @RequestMapping(value = "/handle31") void handle31(OutputStream os); @RequestMapping(value = "/handle41") String handle41(@RequestBody String body); @ResponseBody @RequestMapping(value = "/handle42/{imageId}") byte[] handle42(@PathVariable("imageId") String imageId); @RequestMapping(value = "/handle43") String handle43(HttpEntity<String> requestEntity); @RequestMapping(value = "/handle44/{imageId}") ResponseEntity<byte[]> handle44(
			@PathVariable("imageId") String imageId); @RequestMapping(value = "/handle51") ResponseEntity<User> handle51(HttpEntity<User> requestEntity); @RequestMapping(value = "/handle61") String handle61(@ModelAttribute("user") User user); @RequestMapping(value = "/handle62") String handle62(@ModelAttribute("user") User user); @RequestMapping(value = "/handle63") String handle63(ModelMap modelMap); @ModelAttribute("user") User getUser(); @ModelAttribute("user1") User getUser1(); @ModelAttribute("user2") User getUser2(); @ModelAttribute("dept") Dept getDept(); @RequestMapping(value = "/handle71") String handle71(@ModelAttribute("user") User user); @RequestMapping(value = "/handle72") String handle72(ModelMap modelMap, SessionStatus sessionStatus); @RequestMapping(value = "/handle81") String handle81(@RequestParam("user") User user, ModelMap modelMap); @RequestMapping(value = "/register2") String register2(User user); @RequestMapping(value = "/handle82") String handle82(User user); @RequestMapping(value = "/register3") String register3(); @RequestMapping(value = "/register4") String register4(); @RequestMapping(value = "/handle91") String handle91(@Valid @ModelAttribute("user") User user,
			BindingResult bindingResult, ModelMap mm); @RequestMapping(value = "/handle92") String handle92(@ModelAttribute("user") User user,
			BindingResult bindingResult); @RequestMapping(value = "/welcome") String handle100(); @RequestMapping(value = "/showUserList") String showUserList(ModelMap mm); @RequestMapping(value = "/showUserListByFtl") String showUserListInFtl(ModelMap mm); @RequestMapping(value = "/showUserListByXls") String showUserListInExcel(ModelMap mm); @RequestMapping(value = "/showUserListByPdf") String showUserListInPdf(ModelMap mm); @RequestMapping(value = "/showUserListByXml") String showUserListInXml(ModelMap mm); @RequestMapping(value = "/showUserListByJson") String showUserListInJson(ModelMap mm); @RequestMapping(value = "/showUserListByJson1") String showUserListInJson1(ModelMap mm); @RequestMapping(value = "/showUserListByI18n") String showUserListInI18n(ModelMap mm); @RequestMapping(value = "/showUserListMix") String showUserListMix(ModelMap mm); @RequestMapping(value = "/uploadPage") String updatePage(); @RequestMapping(value = "/upload") String updateThumb(@RequestParam("name") String name,
			                  @RequestParam("file") MultipartFile file); @RequestMapping(value = "/throwException") String throwException(); @ExceptionHandler(RuntimeException.class) String handleException(RuntimeException re, HttpServletRequest request); @RequestMapping(value = "/notFound") String notFound(); @ResponseStatus(HttpStatus.NOT_FOUND) String notFound(HttpServletRequest request); @InitBinder void initBinder(WebDataBinder binder);  }