2 Star 6 Fork 4

jokerLeo / ray

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

基于 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监控和防火墙等
  • 注:数据库分库分表使用依赖为
<dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>shardingsphere-jdbc-spring-boot-starter</artifactId>
    <version>${shardingsphere.version}</version>
</dependency>

后端技术:

技术 名称 官网
Spring Framework 容器 http://projects.spring.io/spring-framework/
SpringMVC MVC框架 http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc
Spring cloud 分布式开发框架 https://spring.io/projects/spring-cloud
Nacos 分布式配置和服务发现 https://nacos.io/zh-cn/index.html
MyBatis Plus ORM框架 https://mp.baomidou.com/
MyBatis Plus Generator 代码生成 https://mybatis.plus/guide/generator.html
Apache ShardingSphere 分布式关系型数据库中间件 https://shardingsphere.apache.org/
Druid 数据库连接池 https://github.com/alibaba/druid
freemarker 模板引擎 https://freemarker.apache.org/
ZooKeeper 分布式协调服务 http://zookeeper.apache.org/
Dubbo 分布式服务调用 http://dubbo.io/
Swagger2 接口测试框架 http://swagger.io/
Maven 项目构建管理 http://maven.apache.org/
Elasticsearch 搜索引擎 https://github.com/elastic/elasticsearch/

本工程参考但不限于以下优秀开源项目,在此表示感谢

名称 地址
mall https://github.com/macrozheng/mall/
zheng https://github.com/shuzheng/zheng/
xxl-sso https://github.com/xuxueli/xxl-sso/
MIT License Copyright (c) 2020 proLeo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

使用spring cloud alibaba的分布式解决方案实例,持续更新中... 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/proLeo/ray.git
git@gitee.com:proLeo/ray.git
proLeo
ray
ray
dev-3.0

搜索帮助