前后端交互时json格式以及前后端请求参数编写格式
JSON以及前端参数请求测试格式
@RestController
@RequestMapping(value = "demo")
public class TestController {
//Content-Type:application/x-www-form-urlencoded;表单提交form-data
@PostMapping("/demo1")
public String test1(@RequestParam("id") Integer id,@RequestPar
原创
2022-05-22 23:13:35 ·
911 阅读 ·
0 评论