• 大小: 26.1MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-15
  • 语言: 其他
  • 标签: SSM  JAVA  

资源简介

包括项目源代码,需求说明,ppt等,绝对是个好项目,适合初学者学习

资源截图

代码片段和文件信息

package com.shop.controller;

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

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.shop.Utils.PageBean;
import com.shop.Utils.UUIDUtiils;
import com.shop.po.Adminuser;
import com.shop.po.Category;
import com.shop.po.Categorysecond;
import com.shop.po.Message;
import com.shop.po.Orders;
import com.shop.po.Product;
import com.shop.po.User;
import com.shop.service.CategorySecondService;
import com.shop.service.CategoryService;
import com.shop.service.MessageService;
import com.shop.service.OrderService;
import com.shop.service.ProductService;
import com.shop.service.UserService;


@Controller
public class AdminController {
@Autowired
private UserService userService;
@Autowired
public CategoryService categoryService;
@Autowired
public CategorySecondService categorySecondService;
@Autowired
public ProductService productService;
@Autowired
private OrderService orderService;
@Autowired
private MessageService messageService;

@RequestMapping(“/admin/admin_findAll“)
public String admin_findAll(Model modelHttpServletRequest request) throws Exception {
Adminuser adminuserLogin = (Adminuser) request.getSession().getAttribute(“adminuserLogin“);
if(adminuserLogin==null){
request.getSession().setAttribute(“message““对不起您还没有登录“);
return “admin/index“;
}
List userList = userService.admin_findAll();
model.addAttribute(“userList“ userList);
return “admin/user/list“;
}

@RequestMapping(“/admin/adminCategory_findAll“)
public String adminCategory_findAll(Model model HttpServletRequest request)
throws Exception {
Adminuser adminuserLogin = (Adminuser) request.getSession().getAttribute(“adminuserLogin“);
if(adminuserLogin==null){
request.getSession().setAttribute(“message““对不起您还没有登录“);
return “admin/index“;
}
List categoryList = categoryService.adminbFindCategory();
/*for (Category category : categoryList) {
System.out.println(category.getCname());
}*/
model.addAttribute(“categoryList“ categoryList);
return “admin/category/list“;
}

@RequestMapping(“/admin/adminCategory_add“)
public String adminCategory_add(Model modelHttpServletRequest request) throws Exception {
Adminuser adminuserLogin = (Adminuser) request.getSession().getAttribute(“adminuserLogin“);
if(adminuserLogin==null){
request.getSession().setAttribute(“message““对不起您还没有登录“);
return “admin/index“;
}
// List categoryList = categoryService.adminbFindCategory();
// model.addAttribute(“categoryList“ categoryList);
return 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-25 19:48  SSM网上购物系统\
     文件     4691456  2018-04-06 18:55  SSM网上购物系统\10863网上购物系统(SSM).ppt
     目录           0  2018-04-07 01:27  SSM网上购物系统\shop\
     文件       14774  2018-04-06 08:40  SSM网上购物系统\shop.sql
     文件        1058  2018-04-08 13:43  SSM网上购物系统\shop\.classpath
     文件         904  2018-04-03 04:53  SSM网上购物系统\shop\.project
     目录           0  2018-04-06 03:57  SSM网上购物系统\shop\.settings\
     文件         500  2018-04-05 20:53  SSM网上购物系统\shop\.settings\.jsdtscope
     文件         275  2018-04-10 08:53  SSM网上购物系统\shop\.settings\org.eclipse.core.resources.prefs
     文件          52  2018-04-06 13:06  SSM网上购物系统\shop\.settings\org.eclipse.core.runtime.prefs
     文件         364  2018-04-02 05:13  SSM网上购物系统\shop\.settings\org.eclipse.jdt.core.prefs
     文件         538  2018-04-03 15:03  SSM网上购物系统\shop\.settings\org.eclipse.wst.common.component
     文件         345  2018-04-07 04:52  SSM网上购物系统\shop\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件         153  2018-04-08 21:03  SSM网上购物系统\shop\.settings\org.eclipse.wst.jsdt.ui.prefs
     文件          49  2018-04-02 18:45  SSM网上购物系统\shop\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-05 15:54  SSM网上购物系统\shop\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-04-07 08:35  SSM网上购物系统\shop\build\
     目录           0  2018-10-10 22:12  SSM网上购物系统\shop\build\classes\
     目录           0  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\
     目录           0  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\
     目录           0  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\
     文件       14355  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\AdminController.class
     文件        2151  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\ajaxController.class
     文件        3246  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\cartController.class
     文件        2224  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\CategorySecondController.class
     文件        3867  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\checkImgController.class
     目录           0  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\converters\
     文件        1068  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\converters\DateConverters.class
     文件        3569  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\indexController.class
     文件        4015  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\loginController.class
     文件        2943  2018-10-10 22:11  SSM网上购物系统\shop\build\classes\com\shop\controller\messageController.class
............此处省略1088个文件信息

评论

共有 条评论