• 大小: 22.67MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-27
  • 语言: Java
  • 标签: web开发  

资源简介

代码直接就可以用,包含用户和管理员两大模块,界面美观,代码简介,内容比较基础。只支持jdk8或以上,不支持myeclipse。数据库用的是mySQL.请先在项目代码包中找到eshop.sql文件,然后把eshop.sql文件复制到C盘根目录执行命令: source c:/eshop.sql.

资源截图

代码片段和文件信息

package com.action;

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

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.springframework.util.StringUtils;

import com.entity.Admin;
import com.entity.Category;
import com.entity.Indent;
import com.entity.Items;
import com.entity.Product;
import com.entity.ProductNew;
import com.entity.ProductSale;
import com.entity.ProductShow;
import com.entity.Users;
import com.service.AdminService;
import com.service.CategoryService;
import com.service.IndentService;
import com.service.ProductService;
import com.service.UserService;
import com.util.PageUtil;
import com.util.SafeUtil;
import com.util.UploadUtil;

@Namespace(“/admin“)
@Results({
@Result(name=“login“location=“/admin/login.jsp“)
@Result(name=“index“location=“/admin/index.jsp“)
@Result(name=“reindex“type=“redirect“location=“index.action“)
@Result(name=“indent“location=“/admin/indent_list.jsp“)
@Result(name=“reindent“type=“redirect“location=“indentList.action?status=${status}&page=${page}“)
@Result(name=“item“location=“/admin/item_list.jsp“)
@Result(name=“category“location=“/admin/category_list.jsp“)
@Result(name=“categoryupdate“location=“/admin/category_edit.jsp“)
@Result(name=“recategory“type=“redirect“location=“categoryList.action?page=${page}“)
@Result(name=“product“location=“/admin/product_list.jsp“)
@Result(name=“productadd“location=“/admin/product_add.jsp“)
@Result(name=“productupdate“location=“/admin/product_update.jsp“)
@Result(name=“productaddshow“location=“/admin/product_addshow.jsp“)
@Result(name=“productaddsale“location=“/admin/product_addsale.jsp“)
@Result(name=“productaddnew“location=“/admin/product_addnew.jsp“)
@Result(name=“reproduct“type=“redirect“location=“productList.action?status=${status}&page=${page}“)
@Result(name=“user“location=“/admin/user_list.jsp“)
@Result(name=“useradd“location=“/admin/user_add.jsp“)
@Result(name=“userreset“location=“/admin/user_reset.jsp“)
@Result(name=“userupdate“location=“/admin/user_update.jsp“)
@Result(name=“reuser“type=“redirect“location=“userList.action?page=${page}“)
@Result(name=“admin“location=“/admin/admin_list.jsp“)
@Result(name=“adminadd“location=“/admin/admin_add.jsp“)
@Result(name=“adminreset“location=“/admin/admin_reset.jsp“)
@Result(name=“readmin“type=“redirect“location=“adminList.action?page=${page}“)
@Result(name=“stocklist“location=“/admin/stock_list.jsp“)
@Result(name=“restocklist“type=“redirect“location=“stockList.action?page=${page}“)
})
public class AdminAction extends baseAction{
private static final long serialVersionUID = 1L;
private static final int rows = 10;

@Resource
private A

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        841  2015-04-30 09:44  ssh_eshop_mysql_190101\ssh_eshop_mysql\.classpath

     文件       1048  2018-12-20 22:13  ssh_eshop_mysql_190101\ssh_eshop_mysql\.project

     文件        503  2012-12-09 15:44  ssh_eshop_mysql_190101\ssh_eshop_mysql\.settings\.jsdtscope

     文件         57  2017-05-08 18:08  ssh_eshop_mysql_190101\ssh_eshop_mysql\.settings\org.eclipse.core.resources.prefs

     文件        364  2012-12-09 15:44  ssh_eshop_mysql_190101\ssh_eshop_mysql\.settings\org.eclipse.jdt.core.prefs

     文件        497  2018-12-20 22:19  ssh_eshop_mysql_190101\ssh_eshop_mysql\.settings\org.eclipse.wst.common.component

     文件        345  2015-04-30 09:44  ssh_eshop_mysql_190101\ssh_eshop_mysql\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2012-12-09 15:44  ssh_eshop_mysql_190101\ssh_eshop_mysql\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2012-12-09 15:44  ssh_eshop_mysql_190101\ssh_eshop_mysql\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件      17017  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\action\AdminAction.class

     文件       2574  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\action\baseAction.class

     文件       6485  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\action\IndexAction.class

     文件      10995  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\action\UserAction.class

     文件       1770  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\dao\AdminDao.class

     文件       2098  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\dao\baseDao.class

     文件       1349  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\dao\CategoryDao.class

     文件       2772  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\dao\IndentDao.class

     文件       7750  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\dao\ProductDao.class

     文件       1398  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\dao\ShopcartDao.class

     文件       1778  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\dao\UserDao.class

     文件       1110  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\Admin.class

     文件        909  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\Category.class

     文件       2684  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\Indent.class

     文件       2037  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\Items.class

     文件       2790  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\Product.class

     文件       1096  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\ProductNew.class

     文件       1600  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\ProductSale.class

     文件       1362  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\ProductShow.class

     文件       1855  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\Shopcart.class

     文件       1924  2018-12-22 10:11  ssh_eshop_mysql_190101\ssh_eshop_mysql\build\classes\com\entity\Users.class

............此处省略236个文件信息

评论

共有 条评论