• 大小: 15.43MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-21
  • 语言: 数据库
  • 标签: 购物商城  

资源简介

此购物商城基于Spring技术,相关mysql数据库文件也在其中,JDK1.8,导入就能运行,如需要修改功能可以参考已经写好的代码适合毕业设计

资源截图

代码片段和文件信息

package com.hgits.controller;

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

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.hgits.entity.Products;
import com.hgits.service.ProductsService;

@Controller
public class BallPageController {
@Resource
ProductsService productsService;

@RequestMapping(“/ball“)
public ModelAndView Balls(HttpSession session Products balls) {
System.out.println(balls);
ModelAndView mv = new ModelAndView();
session.setAttribute(“balls“ productsService.selProducts(balls));
/*System.out.println(productsService.selProducts(balls));*/
mv.setViewName(“ball/ball“);
return mv;
}
@RequestMapping(“/balls“)
public ModelAndView Balls2(HttpSession session Products balls) {
System.out.println(balls+“搜索“);
ModelAndView mv = new ModelAndView();
session.setAttribute(“balls“ productsService.selProduct(balls));
System.out.println(productsService.selProduct(balls));
mv.setViewName(“ball/ball“);
return mv;
}

@RequestMapping(“/basket“)
public ModelAndView Basket() {
ModelAndView mv = new ModelAndView();
mv.setViewName(“ball/basket“);
return mv;
}
@RequestMapping(“/golf“)
public ModelAndView Golf() {
ModelAndView mv = new ModelAndView();
mv.setViewName(“ball/golf“);
return mv;
}
@RequestMapping(“/pingpang“)
public ModelAndView Pingpang() {
ModelAndView mv = new ModelAndView();
mv.setViewName(“ball/pingpang“);
return mv;
}
@RequestMapping(“/socer“)
public ModelAndView Socer() {
ModelAndView mv = new ModelAndView();
mv.setViewName(“ball/socer“);
return mv;
}
@RequestMapping(“/tennis“)
public ModelAndView Tennis() {
ModelAndView mv = new ModelAndView();
mv.setViewName(“ball/tennis“);
return mv;
}
@RequestMapping(“/yumao“)
public ModelAndView Yumao () {
ModelAndView mv = new ModelAndView();
mv.setViewName(“ball/yumao“);
return mv;
}

}

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

     文件        842  2019-02-19 11:22  Shopping\.classpath

     文件        908  2019-02-19 11:22  Shopping\.project

     文件        567  2019-02-19 11:22  Shopping\.settings\.jsdtscope

     文件        364  2019-02-19 11:22  Shopping\.settings\org.eclipse.jdt.core.prefs

     文件        476  2019-02-19 11:22  Shopping\.settings\org.eclipse.wst.common.component

     文件        345  2019-02-19 11:22  Shopping\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2019-02-19 11:22  Shopping\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2019-02-19 11:22  Shopping\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2769  2019-03-07 15:09  Shopping\build\classes\applicationContext.xml

     文件       2870  2019-03-13 09:57  Shopping\build\classes\com\hgits\controller\BallPageController.class

     文件       1542  2019-03-06 14:38  Shopping\build\classes\com\hgits\controller\CosController.class

     文件       1434  2019-03-06 14:38  Shopping\build\classes\com\hgits\controller\EquipmentController.class

     文件       1872  2019-03-07 14:42  Shopping\build\classes\com\hgits\controller\PageController.class

     文件       6657  2019-03-06 14:38  Shopping\build\classes\com\hgits\controller\UsersController.class

     文件       1792  2019-03-13 10:08  Shopping\build\classes\com\hgits\entity\Buy.class

     文件       1800  2019-03-13 10:10  Shopping\build\classes\com\hgits\entity\Cast.class

     文件       3663  2019-03-13 10:06  Shopping\build\classes\com\hgits\entity\Products.class

     文件       2801  2019-03-06 14:38  Shopping\build\classes\com\hgits\entity\Users.class

     文件        322  2019-03-13 09:57  Shopping\build\classes\com\hgits\mapper\ProductsMapper.class

     文件        783  2019-03-13 10:19  Shopping\build\classes\com\hgits\mapper\ProductsMapper.xml

     文件        404  2019-03-06 14:38  Shopping\build\classes\com\hgits\mapper\UsersMapper.class

     文件       1504  2019-02-28 16:36  Shopping\build\classes\com\hgits\mapper\UsersMapper.xml

     文件        325  2019-03-13 09:57  Shopping\build\classes\com\hgits\service\ProductsService.class

     文件        510  2019-03-06 14:38  Shopping\build\classes\com\hgits\service\UsersService.class

     文件       1121  2019-03-13 09:57  Shopping\build\classes\com\hgits\serviceimpl\ProductsServiceImpl.class

     文件       2800  2019-03-06 14:38  Shopping\build\classes\com\hgits\serviceimpl\UsersServiceImpl.class

     文件       3468  2019-03-06 14:38  Shopping\build\classes\com\hgits\util\SpecCharTransUtil.class

     文件        128  2019-02-19 11:37  Shopping\build\classes\db.properties

     文件        456  2019-03-01 14:13  Shopping\build\classes\log4j.properties

     文件       1449  2019-03-01 17:41  Shopping\build\classes\springmvc.xml

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

评论

共有 条评论