@RequestMapping 访问路径默认get
@GetMapping get访问路径
@PostMapping post访问路径
@RequestParam(value = "name",require=false,defaultValue = 0) 传统传参 url?name=111
@PathVariable("id") rest传参 url/111
@RequestMapping 访问路径默认get
@GetMapping get访问路径
@PostMapping post访问路径
@RequestParam(value = "name",require=false,defaultValue = 0) 传统传参 url?name=111
@PathVariable("id") rest传参 url/111