本次分享系统后端采用​​SSM​​框架,前端使用bootstrap、layui、css、js等,有文档。主要功能包括:图书搜索、分类查看、加入购物车、下单,以及管理员管理功能等,对于系统的详细功能。

**

  • 系统首页

**

基于SSM的图书商城_javaweb

**

  • 分类查看

**

基于SSM的图书商城_编程_02


**

  • 热销

**

基于SSM的图书商城_ssm_03


**

  • 详情

**

基于SSM的图书商城_编程_04


**

  • 管理员首页

**

基于SSM的图书商城_图书商城_05


**

  • 商品管理

**

基于SSM的图书商城_javaweb_06


**

  • 项目结构

**

基于SSM的图书商城_java_07


controller部分

@RequestMapping("/index")
public String index(HttpServletRequest request){
request.setAttribute("flag", 1);
request.setAttribute("typeList", typeService.getList());
request.setAttribute("top1List", topService.getList(Tops.TYPE_SCROLL, 1, 1));
request.setAttribute("top2List", topService.getList(Tops.TYPE_LARGE, 1, 6));
request.setAttribute("top3List", topService.getList(Tops.TYPE_SMALL, 1, 8));
return "/index/index.jsp";
}


@RequestMapping("/top")
public String tops(int typeid, @RequestParam(required=false, defaultValue="1")int page, HttpServletRequest request) {
request.setAttribute("flag", typeid==2 ? 7 : 8);
request.setAttribute("typeList", typeService.getList());
request.setAttribute("goodList", goodService.getList(typeid, page, rows));
request.setAttribute("pageTool", PageUtil.getPageTool(request, goodService.getTotal(typeid), page, rows));
return "/index/goods.jsp";
}

xml部分

<select id="selectById" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from goods
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteById" parameterType="java.lang.Integer" >
delete from goods
where id = #{id,jdbcType=INTEGER}
</delete>

好了,以上就是系统的实现过程,更多文章,点击左上角头像,查看更多相关系统的分享。