• 大小: 19.41MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: 其他
  • 标签: ztree  

资源简介

springmvc+spring+mybatis里整合ztree实现增删改 带数据库文件

资源截图

代码片段和文件信息

package main.java.controller;

/**
  * Copyright (c)2014灵创智恒
  * All rights reserved.
  *
  * @file文件名
  * @date 2016-12-21 上午11:58:46
  * @brief
  * 对类进行详细描述
  *
  * @author dy
  */
import java.util.List;
import java.util.UUID;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import main.java.entity.Library;
import main.java.service.LibraryService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = “/library“)
public class LibraryController {

@Resource
public LibraryService libraryService;

/**
* 跳转到分类页面
* @return
*/
@RequestMapping(value = “toListLibrary.do“)
public String toListLibrary() {
return “library/listLibrary“;
}

/**
* 查询所有分类信息
* @return
*/
@RequestMapping(value = “findAllLibrary.do“)
@ResponseBody
public Listject> findAllLibrary(HttpServletRequest request HttpServletResponse response) {
System.out.println(“ztree“);
Listject> objects = libraryService.findAllLibrary();
for (object object : objects) {
System.out.println(“ssss“ + object);
}
return libraryService.findAllLibrary();

}

/**
* 保存分类
* @return
*/
@RequestMapping(value = “saveLibrary.do“)
@ResponseBody
public String saveLibrary(HttpServletRequest request HttpServletResponse response) {
String libraryId = UUID.randomUUID().toString();
return libraryId;
}

/**
* 更新分类名称
* @return
*/
@RequestMapping(value = “updateLibraryName.do“)
@ResponseBody
public String updateLibraryName(HttpServletRequest request HttpServletResponse response Library library) {
// String createname = (String) request.getSession().getAttribute(Constants.CURRENT_USER_NAME);
String createname = “aa“;
library.setCreate_user(createname);
library.setUpdate_user(createname);
return libraryService.addOrUpdateLibrary(library);
}

/**
* 删除分类
* @return
*/
@RequestMapping(value = “deleteLibrary.do“)
@ResponseBody
public String deleteLibrary(HttpServletRequest request HttpServletResponse response @RequestParam(value = “id“) String id) {
return libraryService.deleteLibrary(id);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-12-21 15:22  springmvc+spring+mybatis里整合ztree实现增删改查\
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\
     文件        3445  2016-08-12 11:39  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.classpath
     文件        1349  2016-09-14 13:53  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.project
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\
     文件         522  2016-08-12 09:06  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\.jsdtscope
     文件          79  2016-08-12 11:39  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\com.genuitec.eclipse.migration.prefs
     文件          57  2016-09-09 13:51  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\org.eclipse.core.resources.prefs
     文件         364  2016-08-12 09:06  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\org.eclipse.jdt.core.prefs
     文件         533  2016-09-14 13:53  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\org.eclipse.wst.common.component
     文件         172  2016-08-12 11:39  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml
     文件         462  2016-08-12 11:39  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-08-12 09:06  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-08-12 09:06  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\meta-INF\
     文件          39  2016-08-12 09:06  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\
     目录           0  2016-12-21 15:22  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\aspect\
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\controller\
     文件        3563  2016-12-21 14:20  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\controller\LibraryController.class
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\dao\
     文件         428  2016-12-21 13:07  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\dao\LibraryMapper.class
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\entity\
     文件        2415  2016-12-21 13:06  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\entity\Library.class
     文件        1294  2016-12-21 13:06  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\entity\LibraryVo.class
     目录           0  2016-12-21 14:49  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\service\
     文件        3249  2016-12-21 14:44  springmvc+spring+mybatis里整合ztree实现增删改查\springMVC_mybatis_ztree\WebRoot\WEB-INF\classes\main\java\service\LibraryService.class
............此处省略476个文件信息

评论

共有 条评论