Files
easy/README.md
2020-12-28 15:44:56 +08:00

66 lines
3.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Spring-boot 开发脚手架
## 特别说明
项目脚手架用了maven新版本插件不能向下兼容maven版本在3.5以下${reversion}不能被正确替换将maven升级即可项目快照版本已传到中央仓库中稳定版等功能再完善后再发布现在大家可以先用到快照版本1.0.0-SNAPSHOT当然也推荐大家传到自己公司的nexus中,
懒人仓库地址:https://oss.sonatype.org/content/repositories/snapshots
示例地址:https://github.com/yin5980280/easy-examples
## 项目介绍
提供快速的搭建springspring boot项目提供spring boot阔展等希望通过大家一起学习人人都可以堆各种组件当架构尸吓尿面试官迎娶白富美HRBP该项目中大多数总结来自于抄袭一些优秀开源项目比如pom依赖管理就是抄袭的
spring boot的项目管理方式。
## 功能介绍
集成tk-mybatis并扩展了BaseService(改名为BaseRepository) 和 LogicService(带逻辑删除-该接口已删除-依然可以继承AbstractLogicRepositoryImpl完成逻辑资源操作)提供日志记录线程内MDC日志Id统一的restful返回标准基于tk-mybatis的逆向代码生成工具提供基于redisson的注解式分布式锁DLock提供自己扩展的
spring boot starter提供springcloud统一数据解析和异常传递。
## 模块介绍
### easy-dependencies
该模块管理所有的jar包集成整合spring boot和spring cloud等。
### easy-parent
该模块主要为其他模块和开发应用模块提供一个parent模块使用类似于spring-boot-parent,在pom.xml中加入如下配置
```
<parent>
<artifactId>easy-parent</artifactId>
<groupId>cn.org.easysite</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
```
### easy-common
该模块是easy的一个基础模块提供lombok基础BaseObject(该基类有惊喜自带bean-copy懒人必备)和常用utils等工具
### easy-framework
该模块是easy的核心模块提供spring的扩展等
### easy-spring-boot
该模块是对spring-boot的扩展提供统一返回JSON格式自定义过滤规则和swagger-ui-bootstrap等
### easy-spring-boot-tk-mybatis
该模块是对mapper-spring-boot-starter的一个扩展新增了对基础LogicEntity实体commonMapperBaseService,BaseLogicService等实现
### easy-generator
该模块是代码生成器模块当前该模块只是实现了对tk-mybatis自动生成代码做了扩展大部分代码生成思路来自于drtrang感谢drtrang[https://github.com/drtrang] 的开源工具感谢大师我会继续抄袭的并在该工具上做了逻辑删除等扩展该模块下计划实现restful和vue模版代码常用curd生成。
### easy-spring-cloud-feign
该模块是实现之前代码中easy-spring-boot中提供了对接口的统一返回原计划是在该模块中自动解包实现异常传递等功能该模块功能会在后续中补充
### easy-spring-boot-distributed-lock
该模块是基于redisson(redis的儿子这名字取得好奇怪)提供的RLock实现的基于注解形式的分布式锁(懒人必备)DLock模块大部分思路和实现来自于开源工程klockgithub[https://github.com/kekingcn/spring-boot-klock-starter] 该大师好久没维护了,我拿过来扩展了些功能,之后将介绍具体用法。
### easy-maven-plugins
该模块是基于maven模版自动生成项目工程代码使用方法先将该模版install到本地可以使用命令模式也可以借助于idea在新建项目时选择maven添加模版添加一次即可。
### doc
该模块中包含为easycode插件提供的模版easycode插件使用教程[https://gitee.com/makejava/EasyCode/wikis]
### easy-spring-boot-wr-separation
该模块提供简单的读写分离
### easy-payment 聚合支付支付插件化代码
该模块提供通用的支付插件化协议分发
## 升级日志
升级日志 [https://github.com/yin5980280/easy/blob/develop/doc/update-log.md]