首页 > 解决方案 > Json 多参数如何解析?

问题描述

请求application/json数据:

{
    "TbCommMenu" : {
        "parentId" : "99"
    },
    "Paging" : {
        "page" : "1",
        "pageSize" : "10"
    }
}

控制器:

public PagingList selectMenuList(@ModelAttribute("TbCommMenu") TbCommMenu menu, 
                @ModelAttribute("Paging") Paging paging) throws Exception {

我拿不到数据!我该如何进行解析?

标签: jsonparsingparameterscontroller

解决方案


推荐阅读