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); }) }