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

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

需要请求header添加一个参数

设置  Header参数    Content-Type    application/json

body参数选择

原文地址:https://www.cnblogs.com/toSeeMyDream/p/7804019.html