NutzCN Logo
问答 spring中参数这样传 nutz中该怎么写
发布于 2595天前 作者 qq_64f81159 1551 次浏览 复制 上一个帖子 下一个帖子
标签:

public Page list(@RequestBody Map<String, Object> params) 参数是map
拦截请求是
POST http://localhost:8844/nutzwk/platform/sys/user/list?_1510653281463 HTTP/1.1
Host: localhost:8844
Connection: keep-alive
Content-Length: 64
Accept: application/json, text/javascript, /; q=0.01
Origin: http://localhost:8844
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Content-Type: application/json
Referer: http://localhost:8844/nutzwk/platform/sys/user/index
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.8
Cookie: sid=0764a500-fbd2-4a24-84c5-e4a770442402; custom.session=2207d8d6-31dc-455c-be8e-9988b5893b48

{"sortOrder":"asc","pageSize":10,"pageNumber":1,"username":null}

这种怎么一次性把所有的参数接收? 不要一个个的写。。

2 回复
@Param("..")NutMap params

知道了。。JsonAdaptor

添加回复
请先登陆
回到顶部