资源简介

涉及知识点: 技术语言:java 操作系统:Win10 开发工具:Intellij IDEA、maven 后端使用技术:spring、springMVC、mybatis、shiro 前端使用技术:html、css、js、ajax 数据库:mysql 主要设计内容: 卖家模块:卖家分类、卖家属性管理、卖家联系方式、增删改查 商品模块:商品分类、商品属性管理、商品上线、商品下线、商品查询 用户模块:登陆、注册、会员打折、评价

资源截图

代码片段和文件信息

package com.byh.biyesheji.controller;

import com.byh.biyesheji.pojo.Category;
import com.byh.biyesheji.service.CategoryService;
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 java.util.List;

/**
 * 商品分类模块controller
 */
@Controller
@RequestMapping(“/category“)
public class CategoryController {

    @Autowired
    private CategoryService categoryService;

    @RequestMapping(“/list“)
    public String list(Model model){
        List list = categoryService.list();
        model.addAttribute(“list“list);
        model.addAttribute(“size“list.size());
        return “productmodule/category-list“;
    }

    @RequestMapping(“/addCategory“)
    public String add(@RequestParam(value = “name“)String name){
        Category category = new Category();
        category.setName(name);
        categoryService.save(category);
        return “productmodule/category-list“;
    }

    @RequestMapping(“/delCategory“)
    public String del(@RequestParam(value = “id“)int id){
        categoryService.del(id);
        return “redirect:list“;
    }

    @RequestMapping(“/editCategory“)
    public String edit(@RequestParam(value = “id“)int idModel model){
        Category category = categoryService.get(id);
        model.addAttribute(“category“category);
        return “productmodule/category-edit“;
    }

    @RequestMapping(“/updateCategory“)
    public String update(Category categoryModel model){
        categoryService.update(category);
        return “redirect:list“;
    }

}

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

     文件        153  2019-03-31 13:23  biyesheji\.idea\codestyles\codestyleConfig.xml

     文件        542  2019-03-31 13:27  biyesheji\.idea\compiler.xml

     文件        332  2019-03-31 13:27  biyesheji\.idea\encodings.xml

     文件       4956  2019-03-31 13:27  biyesheji\.idea\misc.xml

     文件      37401  2019-03-31 14:12  biyesheji\.idea\workspace.xml

     文件         95  2018-09-26 16:43  biyesheji\out\artifacts\biyesheji_war_exploded\meta-INF\MANIFEST.MF

     文件       6973  2018-11-01 16:28  biyesheji\pom.xml

     文件       1803  2018-11-05 09:57  biyesheji\src\main\java\com\byh\biyesheji\controller\CategoryController.java

     文件       1619  2018-11-05 10:48  biyesheji\src\main\java\com\byh\biyesheji\controller\CustomerController.java

     文件      18585  2018-11-27 08:26  biyesheji\src\main\java\com\byh\biyesheji\controller\ForeController.java

     文件       2526  2018-12-04 17:11  biyesheji\src\main\java\com\byh\biyesheji\controller\LoginController.java

     文件       2233  2018-11-05 10:48  biyesheji\src\main\java\com\byh\biyesheji\controller\OrderController.java

     文件        851  2018-11-05 10:12  biyesheji\src\main\java\com\byh\biyesheji\controller\PageController.java

     文件       2296  2018-11-05 10:12  biyesheji\src\main\java\com\byh\biyesheji\controller\PermissionController.java

     文件       5453  2018-11-26 17:48  biyesheji\src\main\java\com\byh\biyesheji\controller\ProductController.java

     文件       1603  2018-11-05 10:44  biyesheji\src\main\java\com\byh\biyesheji\controller\ReviewController.java

     文件       2982  2018-11-05 10:45  biyesheji\src\main\java\com\byh\biyesheji\controller\RoleController.java

     文件       4834  2018-11-05 10:46  biyesheji\src\main\java\com\byh\biyesheji\controller\UserController.java

     文件       1506  2018-11-06 15:22  biyesheji\src\main\java\com\byh\biyesheji\controller\ZiXunController.java

     文件        277  2018-11-05 08:52  biyesheji\src\main\java\com\byh\biyesheji\dao\CategoryMapper.java

     文件        862  2018-11-05 08:48  biyesheji\src\main\java\com\byh\biyesheji\dao\CrudDao.java

     文件        379  2018-11-05 09:00  biyesheji\src\main\java\com\byh\biyesheji\dao\CustomerMapper.java

     文件        282  2018-11-05 08:52  biyesheji\src\main\java\com\byh\biyesheji\dao\OrderItemMapper.java

     文件        258  2018-11-05 08:52  biyesheji\src\main\java\com\byh\biyesheji\dao\OrderMapper.java

     文件        287  2018-11-05 08:52  biyesheji\src\main\java\com\byh\biyesheji\dao\PermissionMapper.java

     文件        751  2018-11-27 16:43  biyesheji\src\main\java\com\byh\biyesheji\dao\ProductMapper.java

     文件        264  2018-11-05 08:52  biyesheji\src\main\java\com\byh\biyesheji\dao\ReviewMapper.java

     文件        295  2018-11-05 08:52  biyesheji\src\main\java\com\byh\biyesheji\dao\RoleMapper.java

     文件        311  2018-11-05 08:52  biyesheji\src\main\java\com\byh\biyesheji\dao\RolePermissionMapper.java

     文件        866  2018-11-05 09:00  biyesheji\src\main\java\com\byh\biyesheji\dao\SysDao.java

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

评论

共有 条评论