规定请求方式 RequestMapping(value="/hello" Method=RequestMethod.GET)
@RequestMapping(value="/hello" Method="Request.Method.GET")
@ResponseBody
public String home(){
return "user home";
}
//建议使用以下
@ResponseBody
@GetMapping("/hello")//PostMapping
public String show(@RequestParam("username")String username,@RequestParam("password")String password){
//@RquestParam 默认必须提供值
return "user show"+username+"__---"+password;
}