1:get+params
使用@GetMapping+@RequestParam接收数据;
注意:
http://localhost:8080/t-merchant-key/generate?code = "mc" 有问题 变量和value之间不能有空格
否则会提示
Required request parameter 'XXX' for method parameter type Integer is not present
2:get+restful
使用@GetMapping+@PathVariable接收数据;
3:post+data
使用@PostMapping+@RequestBody接收数据。