SpringMVC @RequestBody请求参数在postman中的请求

使用SpringMVC框架,controller使用参数  @RequestBody  LoginReq req   注解方式模拟http请求

需要请求header添加两个参数

设置  Header参数    Content-Type    application/json

body参数选择

啦啦啦啦啦绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿啦啦啦啦啦绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿绿

原文地址:https://www.cnblogs.com/dzcWeb/p/9517631.html