json - Json 多参数如何解析?
问题描述
请求application/json
数据:
{
"TbCommMenu" : {
"parentId" : "99"
},
"Paging" : {
"page" : "1",
"pageSize" : "10"
}
}
控制器:
public PagingList selectMenuList(@ModelAttribute("TbCommMenu") TbCommMenu menu,
@ModelAttribute("Paging") Paging paging) throws Exception {
我拿不到数据!我该如何进行解析?
解决方案
推荐阅读
- c# - 使用 SHA1 的 OAEP 和使用 BouncyCastle 的 MGF1?
- r - 使用R找到所有可能的3个数字组合,其中总和小于给定数字
- swift - 无法解析可编码的数据。我能够获取数据,但是一旦我使用解码功能,我就会出错
- c++ - 执行 sudo 命令时出现 QProcess 错误
- sql - 按团队分组的基于赢、平和输的连续连胜/非连胜
- python - 对网格图中的平行度
- javascript - 使用 innerHTML 创建的 HTML 音频元素在播放时会引发 DOMException
- java - Intelliji 调试不适用于 testng maven
- video - 为什么使用 youtube-dl 设置代理参数时无法下载视频标题?
- javascript - 在 SCEditor 中将列表项标签设置为 [*]x 而不是 [li]x[/li] 以实现 vBulletin 兼容性