# ray **Repository Path**: proLeo/ray ## Basic Information - **Project Name**: ray - **Description**: 使用spring cloud alibaba的分布式解决方案实例,持续更新中... - **Primary Language**: Java - **License**: MIT - **Default Branch**: dev-3.0 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 4 - **Created**: 2020-06-24 - **Last Updated**: 2022-07-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 基于 springcloud alibaba 的分布式开发常用方案实例,orm框架使用mybatisplus,数据库分库分表使用sharding-jdbc,后续将持续更新... #### 功能说明 基于springboot+mybatisplus+dubbo的分布式敏捷开发项目,包含以下功能: - 1.一键生成entity,dao,service,serviceImpl,controller,同时service满足dubbo配置,可供其他项目调用 - 2.基于docker-compose的mysql主从一键化搭建,结构为一主两从和一主一从共五个数据库 - 3.自定义springboot yml配置加密,不仅限于密码加密,不需要额外依赖,简单易用 - 4.基于sharding-jdbc-spring-boot-starter的分库分表,读写分离和TransactionType.LOCAL类型的分布式事务 - 5.自定义swagger自动配置,注解一键引入 - 6.填sharding-jdbc-spring-boot-starter和druid-spring-boot-starter同时使用的坑,解决分库分表的同时使用druid所有的监控功能,包括sql监控和防火墙等 - 注:数据库分库分表使用依赖为 ```` org.apache.shardingsphere shardingsphere-jdbc-spring-boot-starter ${shardingsphere.version} ```` #### 后端技术: 技术 | 名称 | 官网 ----|------|---- 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) Spring cloud | 分布式开发框架 | [https://spring.io/projects/spring-cloud](https://spring.io/projects/spring-cloud) Nacos | 分布式配置和服务发现 | [https://nacos.io/zh-cn/index.html](https://nacos.io/zh-cn/index.html) MyBatis Plus | ORM框架 | [https://mp.baomidou.com/](https://mp.baomidou.com/) MyBatis Plus Generator | 代码生成 | [https://mybatis.plus/guide/generator.html](https://mybatis.plus/guide/generator.html) Apache ShardingSphere | 分布式关系型数据库中间件 | [https://shardingsphere.apache.org/](https://shardingsphere.apache.org/) Druid | 数据库连接池 | [https://github.com/alibaba/druid](https://github.com/alibaba/druid) freemarker| 模板引擎 | [https://freemarker.apache.org/](https://freemarker.apache.org/) ZooKeeper | 分布式协调服务 | [http://zookeeper.apache.org/](http://zookeeper.apache.org/) Dubbo | 分布式服务调用 | [http://dubbo.io/](http://dubbo.io/) Swagger2 | 接口测试框架 | [http://swagger.io/](http://swagger.io/) Maven | 项目构建管理 | [http://maven.apache.org/](http://maven.apache.org/) Elasticsearch | 搜索引擎 | [https://github.com/elastic/elasticsearch/](https://github.com/elastic/elasticsearch/) #### 本工程参考但不限于以下优秀开源项目,在此表示感谢 名称| 地址 ----|------ mall | [https://github.com/macrozheng/mall/](https://github.com/macrozheng/mall/) zheng | [https://github.com/shuzheng/zheng/](https://github.com/shuzheng/zheng/) xxl-sso | [https://github.com/xuxueli/xxl-sso/](https://github.com/xuxueli/xxl-sso/)