An open API service indexing awesome lists of open source software.

https://github.com/daoshenzzg/springboot2.x-example

基于spring cloud的脚手架。基于spring boot 2.x,组合 Mybatis、Redis(Jetcache)、Elasticsearch、RocketMQ
https://github.com/daoshenzzg/springboot2.x-example

elasticsearch-client jetcache mybatis3 mybatisplus resttemplate rocketmq-spring-boot-starter springboot2

Last synced: about 2 months ago
JSON representation

基于spring cloud的脚手架。基于spring boot 2.x,组合 Mybatis、Redis(Jetcache)、Elasticsearch、RocketMQ

Awesome Lists containing this project

README

        

# spring-demo: spring-boot + Redis + MyBatis + Elasticsearch + RocketMQ

# 项目结构

# 项目组件
* [MyBatis](http://www.mybatis.org/mybatis-3/zh/index.html)
* [Redis-jetcache](https://github.com/alibaba/jetcache)
* [RocketMQ](https://github.com/apache/rocketmq-spring/blob/master/README_zh_CN.md)
* [ElasticSearch](https://spring.io/projects/spring-data-elasticsearch)
* [HuTool](https://hutool.cn/docs/#/?id=%e6%96%87%e6%a1%a3)

# 更新 2019-09-04
* Mybatis 升级为 [Mybatis plus](https://mp.baomidou.com/)。并完善多数据源混合使用,动态切换数据源demo。
减少xml配置,自动填充createTime、updateTime字段。
* 增加 Spring RestTemplate + HttpClient组合,时间连接池、超时时间配置。
* logback 多环境配置。
* Jetcache 支持 jedis 操作接口。

# 更新 2019-09-05
* 集成 Mybatis plus 分页插件,增加分页操作Demo。
* 修复 "Mybatis plus mapper-locations 配置错误,找不到 xml" BUG。
* 增加事务操作Demo。

# 更新 2019-10-23
* springboot 返回json null 字段初始化。支持 Array、Collection to []; string to "", Boolean to false, 甚至 Object(?) to {} !!!

# 更新 2019-10-29
* springboot 全局异常处理的正确方式
* springboot 优雅的实现 API 输出

# 原创文章
* [springboot2.x Jackson自定义序列化,优雅实现String、List、Object返回""、[]、{}](https://www.jianshu.com/p/5ff776df1370)
* [springboot2.x 集成 Mybatis plus(多数据源),提升20%的开发效率](https://www.jianshu.com/p/bcef1351ea9c)
* [springboot2.x 全局异常处理正确方式](https://www.jianshu.com/p/d72daaa9b722)
* [springboot2.x 如何优雅的实现API输出?](https://www.jianshu.com/u/ae816a99af1f)
* [如何优雅的实现数据置顶、置尾、交换、拖动排序?](https://www.jianshu.com/p/384debfe321d)

# 引用文章
* [使用spring validation完成数据后端校验](https://blog.csdn.net/u013815546/article/details/77248003)