# development **Repository Path**: meichangsu/development ## Basic Information - **Project Name**: development - **Description**: 企业级开发平台,采用SSM架构,目前体量较小,持续开发中。JAVA SSM框架 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 1 - **Created**: 2017-09-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # development [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/jiang467534945/development/pulls) [![GitHub stars](https://img.shields.io/github/stars/jiang467534945/development.svg?style=social&label=Stars)](https://github.com/jiang467534945/development) [![GitHub forks](https://img.shields.io/github/forks/jiang467534945/development.svg?style=social&label=Fork)](https://github.com/jiang467534945/development) 交流QQ群:513829785(群内含各种工具、文档、视频教程下载) ## 前言   `development`项目创建于2017年10月1日,正在慢慢成长中,其最终目标,加速中小型企业开发,提供一套J2EE企业级开发解决方案 ## 前言   `development`项目的诞生,主要需要感谢开源项目jeesite、zheng等优秀框架,有一些功能在开发是指借鉴了这些框架,非常感谢 ## 项目介绍   分为二期功能,一期确保框架可以尽快进入使用,并且开源,确保中小型企业可以基于框架快速开发。二期加入微服务,存储系统,服务治理系统,任务的通知以及下发等其他分布式敏捷架构 ### 组织结构 ``` lua development ├── development -- 快速开发系统 | ├── src -- 后端代码集合地 ├── common-- SSM框架公共模块 ├── gen -- 代码生成模块 ├── upms-- 用户管理、权限管理模块 ├── resources-- 配置文件 ├── webapp-- 静态资源以及JSP模板 ``` ### 技术选型 #### 后端技术: 技术 | 名称 | 官网 ----|------|---- Spring Framework | 容器 | [http://projects.spring.io/spring-framework/](http://projects.spring.io/spring-framework/) SpringMVC | MVC框架 | [http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc](http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc) Apache Shiro | 安全框架 | [http://shiro.apache.org/](http://shiro.apache.org/) MyBatis | ORM框架 | [http://www.mybatis.org/mybatis-3/zh/index.html](http://www.mybatis.org/mybatis-3/zh/index.html) MyBatis Generator | 代码生成 | [http://www.mybatis.org/generator/index.html](http://www.mybatis.org/generator/index.html) Redis | 分布式缓存数据库 | [https://redis.io/](https://redis.io/) Log4J | 日志组件 | [http://logging.apache.org/log4j/1.2/](http://logging.apache.org/log4j/1.2/) Protobuf & json | 数据序列化 | [https://github.com/google/protobuf](https://github.com/google/protobuf) Maven | 项目构建管理 | [http://maven.apache.org/](http://maven.apache.org/) #### 前端技术: 技术 | 名称 | 官网 ----|------|---- jQuery | 函式库 | [http://jquery.com/](http://jquery.com/) Bootstrap | 前端框架 | [http://getbootstrap.com/](http://getbootstrap.com/) Bootstrap-table | Bootstrap数据表格 | [http://bootstrap-table.wenzhixin.net.cn/](http://bootstrap-table.wenzhixin.net.cn/) Font-awesome | 字体图标 | [http://fontawesome.io/](http://fontawesome.io/) material-design-iconic-font | 字体图标 | [https://github.com/zavoloklom/material-design-iconic-font](https://github.com/zavoloklom/material-design-iconic-font) Waves | 点击效果插件 | [https://github.com/fians/Waves](https://github.com/fians/Waves) zTree | 树插件 | [http://www.treejs.cn/v3/](http://www.treejs.cn/v3/) Select2 | 选择框插件 | [https://github.com/select2/select2](https://github.com/select2/select2) layui | 弹出窗口插件 | [https://github.com/craftpip/jquery-confirm](https://github.com/craftpip/jquery-confirm) React | 界面构建框架 | [https://github.com/facebook/react](https://github.com/facebook/react) ## 环境搭建 #### 开发工具: - MySql: 数据库 - jetty: 开发服务器 - Tomcat: 应用服务器 - SVN|Git: 版本管理 - IntelliJ IDEA: 开发IDE - Navicat for MySQL: 数据库客户端 #### 开发环境: - Jdk8+ - Mysql5.5+ - Redis ## 开发指南: - 1、本机安装Jdk9、Mysql、Redis并**启动相关服务**,使用默认配置默认端口即可 - 2、克隆源代码到本地并打开,**推荐使用IntelliJ IDEA**,本地编译并安装到本地maven仓库 ### 编译流程 maven编译安装/pom.xml文件即可 ### 启动顺序(后台) ### 部署方式 - war包项目:使用tomcat等web容器启动 ### 框架规范约定 约定优于配置(convention over configuration),此框架约定了很多编程规范,下面一一列举: ``` - service类,需要在叫名`service`的包下,并以`Service`结尾,如`UpmsMenuServiceImpl` - controller类,需要在以`controller`结尾的包下,类名以Controller结尾,如`UpmsMenuController.java` - spring task类,需要在叫名`task`的包下,并以`Task`结尾,如`TestTask.java` - mapper.xml,需要在名叫`mapper`的包下,并以`Mapper.xml`结尾,如`UpmsMenuMapper.xml` - Dao接口,需要在名叫`Dao`的包下,并以`Mapper`结尾,如`UpmsMenuDao.java` - model实体类,需要在名叫`model`的包下,命名规则为数据表转驼峰规则,如`CmsArticle.java` - spring配置文件,命名规则为`spring-*.xml` - 类名:首字母大写驼峰规则;方法名:首字母小写驼峰规则;常量:全大写;变量:首字母小写驼峰规则,尽量非缩写 - springmvc配置加到对应模块的`spring-mvc.xml`文件里 - 配置文件放到`src/main/resources`目录下 - 静态资源文件放到`src/main/webapp/resources`目录下 - jsp文件,需要在`/WEB-INF/jsp`目录下 - `RequestMapping`和返回物理试图路径的url尽量写全路径,如:`@RequestMapping("/manage")`、`return "/manage/index"` - `RequestMapping`指定method - 数据表命名为:`子系统`_`表`,如`upms_article` ``` ### 预览图 ![idea](/IDEA.jpg) ![login](/首页.jpg) ![upms](/用户.jpg) ### 参与开发 首先谢谢大家支持,如果你希望参与开发,欢迎通过QQ群联系Easy。 ## 许可证 [MIT](LICENSE "MIT")