Giter Site home page Giter Site logo

hhy5277 / s-mall-ssm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xenv/s-mall-ssm

0.0 1.0 0.0 2.83 MB

小小商城系统,JavaWEB项目,基于SSM,仿天猫页面,功能齐全,实现了自动处理关联查询的通用Mapper、抽象 BaseService 类、注解鉴权、参数注解校验等

Home Page: https://small.ડ.com/

License: GNU General Public License v3.0

Java 90.36% CSS 7.80% JavaScript 1.84%

s-mall-ssm's Introduction

小小商城系统 - SSM版

练手 JavaWEB 项目,本版本为SSM版。本项目实现了通用 Mapper,免写 SQL,全自动处理关联查询。通过合理配置 MyBatis Generator 和自定义插件,灵活隔离手写代码和自动生成代码。实现了 BaseService 类对 Service 层进行抽象。通过拦截器实现了方法级粒度的鉴权,通过AOP实现了参数校验。


演示https://small.ડ.com/
可自行注册账号,或使用后台查看权限账号 demo 密码 demo (后台入口登陆后显示)

兄弟项目:
SSH版(实现了SSM版95%功能)
Servlet版(实现了SSM版85%功能)


本项目的亮点:

  • 功能齐全,页面丰富,实现了小商城的大部分功能
  • 前端仿天猫2017页面,基于原生 CSS(前台)、Bootstrap(后台)、Jquery、Bootstrap Js 构建
  • 本项目为 Maven 项目,后端使用 Spring 4 + SpringMVC 4 + Mybatis 3.4 + aspectj 1.8
  • 实现了一个 通用mapper,免写 SQL,可进行单表和多表关联查询,自动插入一对多/多对一对象(注解配置关联对象,结合 MyBatis Generator )
  • 实现了一个 BaseService 类 ,集成了多条件的查询和增改删操作,普通 Service 只需写少量代码即可
  • 完全隔离 MyBatis Generator 生成代码和额外手写代码,以支持可持续化部署,实现了多个MyBatis Generator插件,全部采用软删除
  • 通过拦截器和自定义注解实现了方法级粒度的用户鉴权 ,不同用户组权限完全隔离
  • 通过 参数注解 进行方法级数据校验,无需额外配置校验类 (通过 AOP 切面实现)
  • 统一的错误处理

讲解文章:

功能:

  • 首页、分类页、搜索页、产品页
  • 购物车页面、下单页、支付页及支付成功页
  • 我的订单页、确认收货及成功页、评价页
  • 登陆页、注册页
  • 全部数据库的后台可视化管理
  • 网站SEO设置、图片路径设置

安装使用:

  1. 若使用IDE打开,需按 Maven 文件安装依赖
  2. 若在Tomcat中部署,Maven文件中已经配置好直接在线部署,使用 maven tomcat7:deploy 可直接在线部署 (需先配置好Tomcat)
  3. 导入数据库small.sql,在 \src\main\resources\jdbc.properties 中配置数据库
  4. 默认后台地址 /admin ,账户密码为 admin 123456 ,新建用户在前台注册,需要后台权限需要在数据库的User表的group_列中将该用户的用户组设置为 superAdmin
  5. JDK >= 1.8、数据库 Mysql

s-mall-ssm's People

Contributors

xenv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.