You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot-base-api/README.md

22 lines
1.2 KiB

7 years ago
### 简介
7 years ago
Spring Boot API Project Seed 是一个基础Spring Boot&MyBatis的模板项目,用于快速构建纯API的项目,该模板项目已经历过两个真实项目的实践,稳定、简单、快速。基于该模板项目可使你轻松编码、摆脱加班。
7 years ago
#### 特征
7 years ago
- [X] 统一JSON响应结果封装及生成工具
- [X] 统一异常处理
- [X] 基础方法(CRUD)Service 抽象封装
- [X] 基于通用Mapper插件、PageHelper实现单表业务零SQL
- [X] 基础代码使用模板直接生成(Model、Mapper、MapperXML、Service、Controller),可根据自己的业务定制模板,摆脱重复劳动
7 years ago
### 快速开始
1. 克隆项目
2. 对test包内的代码生成器```CodeGenerator```进行配置
3. 运行```mian()```方法,刷新项目文件夹,基础代码即生成成功
4. 根据业务在基础代码上进行扩展即可
### 技术选型&文档
- Spring Boot([查看文档](http://docs.spring.io/spring-boot/docs/1.5.3.RELEASE/reference/htmlsingle/))
- MyBatis ([查看文档](http://www.mybatis.org/mybatis-3/zh/index.html))
- MyBatis Mapper插件、PageHelper分页插件 ([查看文档](http://www.mybatis.tk/))