Onlineshop源码结构
/config/base user,role,menu,privilege的sql语句封装成的XML文件
/config/module/front 前端页面中模块的sql语句封装成的XML文件
/config/module/mange 后台管理系统中模块的sql语句封装成的XML文件
/net.onlineshop/core/dao/page 分页模型
/net.onlineshop/core/dao/basedao 封装mybatis最基本的数据库操作
/net.onlineshop/core/dao/QueryModel 后台公共的查询条件层
/net.onlineshop/core/exception 异常处理
/net.onlineshop/core/filter 用户过滤器和乱码过滤器
/net.onlineshop/core/freemarker.front 生成模板的帮助类
/net.onlineshop/core/front 系统管理类
/net.onlineshop/core/interceptor 前后台拦截器
/net.onlineshop/core/kuaidi 快递的实体类
/net.onlineshop/core/listener 监听器
/net.onlineshop/core/oscahe 缓存管理器
/net.onlineshop/core/oss 阿里云oss相关
/net.onlineshop/core/pay.alipay.alipayescow 支付宝相关
/net.onlineshop/core/servlet 开发日志,文件上传工具类,验证码
/net.onlineshop/core/sms 公司的sms短信平台
/net.onlineshop/core/system.bean Menu MenuItem MenuTypeprivilege role user实体类
/net.onlineshop/core/task 定时器
/net.onlineshop/core/utils 工具类
/net.onlineshop/core/yeepay 易付宝相关
/net.onlineshop/core/baseaction 基础的action
/net.onlineshop/core/daomanager 提供业务逻辑最基本的服务
/net.onlineshop/core/FrontContainer 常量类
/net.onlineshop/core/keyvaluehelper key-value工具类
/net.onlineshop/core/managercontainer 全局变量
/net.onlineshop/core/privilegeutil 权限检查工具
/net.onlineshop/core/taskmanager 任务管理,负责管理定时启动的任务。
/net.onlineshop/core/services 提供业务逻辑最基本的服务
/net.onlineshop/core/servicesmanager 继承services的增删改查
/net.onlineshop/services/common 用到的实体类
浏览端
/net.onlineshop/services/front/account 前台用户的各种功能的实现
/net.onlineshop/services/front/address 地址模块的实现
/net.onlineshop/services/front/area 区域模块的实现
/net.onlineshop/services/front/advert 广告模块的实现
/net.onlineshop/services/front/attribute 商品属性模块的实现
/net.onlineshop/services/front/attribute-link 商品属性中间类的实现
/net.onlineshop/services/front/catlog 目录模块的实现
/net.onlineshop/services/front/comment 评论模块的实现
/net.onlineshop/services/front/email 邮件模块的实现
/net.onlineshop/services/front/express 快递模块的实现
/net.onlineshop/services/front/favorite 喜爱模块的实现
.....
后台管理端
/net.onlineshop/services/manag/account 用户的各种功能的实现
/net.onlineshop/services/manag/address 地址模块的实现
/net.onlineshop/services/manag/area 区域模块的实现
/net.onlineshop/services/manag/advert 广告模块的实现
/net.onlineshop/services/manag/attribute 商品属性模块的实现
/net.onlineshop/services/manag/attribute-link 商品属性中间类的实现
/net.onlineshop/services/manag/catlog 目录模块的实现
/net.onlineshop/services/manag/comment 评论模块的实现
/net.onlineshop/services/manag/email 邮件模块的实现
/net.onlineshop/services/manag/express 快递模块的实现
/net.onlineshop/services/manag/favorite 喜爱模块的实现
.....
浏览端
/net.onlineshop/web.action/front/account 门户会员的服务类
/net.onlineshop/web.action/front/cart 购物车
/net.onlineshop/web.action/front/freemarker 会员action
/net.onlineshop/web.action/front/news 文章管理
/net.onlineshop/web.action/front/orders 订单管理
...
管理端
/net.onlineshop/web.action/manage/account 后台用户的服务类
代码分层情况
Onlineshop将代码先分为mybatis的封装好的xml文件和三层架构在一起的net.onlineshop 再在net.onlineshop中分表示层—业务逻辑层—数据访问层,在services中每个模块又细分bean dao impl 在dao中又分impl和方法
SQL语句重用情况
将一些经常使用的增删改查写成xml文件
第三方框架使用
阿里云,支付宝,易付宝,快递,sms短信平台
源码特色功能
定时器:分为取消订单定时器,自动到货通知定时器,后台缓存定时更新
sitemap.xml定时生成
异常管理:全都继承了RuntimeException
日志管理:前后台日志管理通过配置文件实现。