postman传对象(对象之中还有集合和其他属性)
程序员文章站
2022-04-10 14:38:03
...
1.不能在对象前加@RequestData注解
2.要在需要传的集合前加上@GenericClass注解
3.postMan中的写法
{"tourists":[{"id":"4203365541485744","name":"猪八戒","telephone":"15684586235"},{"id":"4203358964212144","name":"税务","telephone":"15682145246"}],"sessionsId":"562","tourDate":"2019-10-23","totalVotes":"2800"}