• 大小: 10.15MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-20
  • 语言: 其他
  • 标签: ssm  javaweb  spring  项目  

资源简介

ssm基于ssm+maven的app信息管理系统的源代码,可以参考学架构思路。

资源截图

代码片段和文件信息

package cn.appsys.controller;

import java.io.File;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

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

import org.apache.commons.io.FilenameUtils;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.alibaba.fastjson.JSONArray;

import cn.appsys.pojo.AppCategory;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.AppVersion;
import cn.appsys.pojo.BackendUser;
import cn.appsys.pojo.DataDictionary;
import cn.appsys.pojo.DevUser;
import cn.appsys.service.AppCategoryService;
import cn.appsys.service.AppInfoService;
import cn.appsys.service.AppversionService;
import cn.appsys.service.DataDictionaryService;
import cn.appsys.tools.Constants;
import cn.appsys.tools.PageSupport;

@Controller
@RequestMapping(“/appInfo“)
public class Appinfocontroller {
private static Logger logger = Logger.getLogger(Appinfocontroller.class);

@Resource
private AppInfoService appInfoService;

@Resource
private AppCategoryService appCategoryService;

@Resource
private DataDictionaryService dataDictionaryService;
@Resource
public AppversionService appverSion;

public List getDataDictionaryList(String typeCode) {
List dataDictionaryList = null;
try {
dataDictionaryList = dataDictionaryService
.getDataDictionaryList(typeCode);
} catch (Exception e) {
e.printStackTrace();
}
return dataDictionaryList;
}

@RequestMapping(value = “/datadictionarylist.json“ method = RequestMethod.GET)
@ResponseBody
public List getDataDicList(@RequestParam String tcode) {
logger.debug(“getDataDicList tcode ============ “ + tcode);
return this.getDataDictionaryList(tcode);
}

// 获取类型列表

public List getCategoryList(String pid) {
List categoryLevelList = null;
try {
categoryLevelList = appCategoryService
.getAppCategoryListByParentId(pid == null ? null : Integer
.parseInt(pid));
} catch (Exception e) {
e.printStackTrace();
}
return categoryLevelList;
}

// 根据parentId查询出相应的分类级别列表

@RequestMapping(value = “/categorylevellist.json“ method = RequestMethod.GET)
@ResponseBody
public List getAppCategoryList(@RequestParam String pid) {
logger.debug(“getAppCategoryList pid ============ “ + pid);
if (pid.equals(““))
pid = null;
return getCategoryList(pid);
}

@RequestMapping(value = “/list“)
public String getAppInfoList(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-10 09:12  appSQL\
     目录           0  2018-12-10 09:11  appSQL\.idea\
     文件         336  2018-12-10 09:10  appSQL\.idea\appSQL.iml
     文件        1210  2018-12-10 09:10  appSQL\.idea\misc.xml
     文件         264  2018-12-10 09:10  appSQL\.idea\modules.xml
     文件       18462  2018-12-10 09:11  appSQL\.idea\workspace.xml
     文件         210  2018-12-10 09:12  appSQL\.project
     目录           0  2018-05-29 13:01  appSQL\AppInfoSystem-master\
     文件       28854  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppinfoDB.sql
     目录           0  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\
     文件        3034  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.classpath
     目录           0  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.externalToolBuilders\
     文件         541  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.externalToolBuilders\org.eclipse.wst.jsdt.core.javascriptValidator (1).launch
     文件        1240  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.project
     目录           0  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\
     文件         491  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\.jsdtscope
     文件          55  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\org.eclipse.core.resources.prefs
     文件         357  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\org.eclipse.jdt.core.prefs
     文件         562  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\org.eclipse.wst.common.component
     文件         335  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\build\
     目录           0  2018-12-10 09:12  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\
     文件        3307  2018-05-29 13:01  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\applicationContext-mybatis.xml
     目录           0  2018-12-10 09:12  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\cn\
     目录           0  2018-12-10 09:12  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\cn\appsys\
     目录           0  2018-12-10 09:12  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\cn\appsys\controller\
     文件        6058  2018-12-10 09:12  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\cn\appsys\controller\Appinfocontroller.class
     文件        4489  2018-12-10 09:12  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\cn\appsys\controller\AppversionController.class
     文件        1866  2018-12-10 09:12  appSQL\AppInfoSystem-master\AppInfoSystem\build\classes\cn\appsys\controller\Backcontroller.class
............此处省略231个文件信息

评论

共有 条评论