Controller@RequestMapping("ask")@ResponseBodypublic RobotResponse get(RobotRequest robotRequest){RobotRequest.javapublic class RobotRequest implements java.io.Serializable {private cn.eastrobot.www.ws.RobotServiceEx.UserAttribute[] attributes;UserAttribute.javapublic class UserAttribute implements java.io.Serializable {private java.lang.String name;private java.lang.String value;問:前臺如何傳值可以封裝到 robotRequest中需要前臺傳值,經(jīng)數(shù)據(jù)封裝到 robotRequest的attributes中筆者沒有辦法
1 回答

智慧大石
TA貢獻1946條經(jīng)驗 獲得超3個贊
筆者已經(jīng)找辦法
localhost:8080/ask?question=你好&userId=litong&attributes[0].name=platform&attributes[0].value=weixin
不需要使用雙引號將 值 引起來
- 1 回答
- 0 關(guān)注
- 991 瀏覽
添加回答
舉報
0/150
提交
取消