HelloController { @RequestMapping(value = "/hello") String home(@RequestParam String name, Model model) { model.addAttribute("name", name); System.out.println("name=======" + name); return "hello"; }    }
@Test public void testHome() throws Exception { MockHttpServletResponse msr = doGet("/hello?name=scala"); System.out.println(msr.getContentAsString()); }