springMVC中接收数组参数

方式一、

后台:public ResultBean queryItemRulesByItemIds(int userId, int[] itemIds)

方式二、

后台:public GeneralResult<Comment> add(Comment comment, Integer ownerUserId,@RequestParam(value = "userIds[]")Integer[] userIds)

posted @ 2017-02-13 17:10  esther-qing  阅读(182)  评论(0)    收藏  举报