当前位置: 代码迷 >> JavaScript >> spring MVC之回来JSON数据(Spring3.0 MVC)
  详细解决方案

spring MVC之回来JSON数据(Spring3.0 MVC)

热度:129   发布时间:2013-07-11 15:38:46.0
spring MVC之返回JSON数据(Spring3.0 MVC)
spring MVC之返回JSON数据(Spring3.0 MVC) http://fhd001.iteye.com/blog/1136428
Spring MVC 学习笔记 九 json格式的输入和输出 http://starscream.iteye.com/blog/1067606

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.2.2</version>
        </dependency>


@RequestMapping("/getBasicMenuList")
    @ResponseBody
    public List<ZTreeNode> getBasicMenuList() {
        return rhSysMenuSetManager.getBasicMenuList();
    }


getBasicMenuList = function(){
    $.getJSON(contentPath+"/rhSysMenuSets/getBasicMenuList",function(zNodes){
        $.fn.zTree.init($("#treeDemo"), setting, zNodes);
        $.fn.zTree.init($("#treeDemo2"), setting);
    })
}
  相关解决方案