@RequestMapping(value="menuTreeAjax", produces = "application/json; charset=utf-8") @ResponseBody /** * 根据parentMenuId获取菜单的树结构 * @param parentMenuId * @return */ public String menuTreeAjax(Integer parentMenuId) { JSONArray array = menuService.getTreeMenuByParentMenuId(parentMenuId); return array.toString(); }