All Projects → heikehuan → Springboot Multiple Datasources

heikehuan / Springboot Multiple Datasources

Licence: apache-2.0
This is an example of automatically switching data sources for spring boot

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Springboot Multiple Datasources

Nimrod
Nimrod - 基于 Spring Boot 构建 的 Java Web 平台企业级单体应用快速开发框架,适合中小型项目的应用和开发。所采用的技术栈包括 Spring Boot、Spring、Spring Web MVC、MyBatis、Thymeleaf 等,遵守阿里巴巴 Java 开发规约,帮助养成良好的编码习惯。整体采用 RBAC ( Role-Based Access Control ,基于角色的访问控制),具有严格的权限控制模块,支持系统与模块分离开发。最后希望这个项目能够对你有所帮助。Nimrod 开发交流群:547252502(QQ 群)
Stars: ✭ 125 (-4.58%)
Mutual labels:  mybatis, spring-boot, spring
Jeecg Boot
「企业级低代码平台」前后端分离架构SpringBoot 2.x,SpringCloud,Ant Design&Vue,Mybatis-plus,Shiro,JWT。强大的代码生成器让前后端代码一键生成,无需写任何代码! 引领新的开发模式OnlineCoding->代码生成->手工MERGE,帮助Java项目解决70%重复工作,让开发更关注业务,既能快速提高效率,帮助公司节省成本,同时又不失灵活性。
Stars: ✭ 26,432 (+20077.1%)
Mutual labels:  mybatis, spring-boot, spring
Spring Boot Demo
spring boot demo 是一个Spring Boot、Spring Cloud的项目示例,根据市场主流的后端技术,共集成了30+个demo,未来将持续更新。该项目包含helloworld(快速入门)、web(ssh项目快速搭建)、aop(切面编程)、data-redis(redis缓存)、quartz(集群任务实现)、shiro(权限管理)、oauth2(四种认证模式)、shign(接口参数防篡改重放)、encoder(用户密码设计)、actuator(服务监控)、cloud-config(配置中心)、cloud-gateway(服务网关)等模块
Stars: ✭ 323 (+146.56%)
Mutual labels:  mybatis, spring-boot, spring
Ebook
🔥🔥Java相关精品电子书分享100+,书籍来自网络🔥🔥
Stars: ✭ 197 (+50.38%)
Mutual labels:  mybatis, spring-boot, spring
Eshop Soa
EShop基于Dubbo实现SOA服务化拆分,并基于RocketMQ解决了分布式事务(新版SpringBootSOASkeleton)
Stars: ✭ 65 (-50.38%)
Mutual labels:  mybatis, spring-boot, spring
Efo
EFO是一个基于SpringBoot和Vue构建的文件分享系统,包括文件的上传与下载,文件的权限管理,远程文件管理等功能。
Stars: ✭ 327 (+149.62%)
Mutual labels:  mybatis, spring-boot, spring
Watchdog Framework
🍻 「停止维护」基于SpringBoot+Shiro+Mybatis等开发的轻量级管理系统快速开发脚手架
Stars: ✭ 421 (+221.37%)
Mutual labels:  mybatis, spring-boot, spring
Bird Java
bird-java是以Spring Boot为基础的开发增强组件包。
Stars: ✭ 154 (+17.56%)
Mutual labels:  mybatis, spring-boot, spring
Spring Boot
spring-boot 项目实践总结
Stars: ✭ 989 (+654.96%)
Mutual labels:  mybatis, spring-boot, spring
Springbootunity
rabbitmq、redis、scheduled、socket、mongodb、Swagger2、spring data jpa、Thymeleaf、freemarker etc. (muti module spring boot project) (with spring boot framework,different bussiness scence with different technology。)
Stars: ✭ 845 (+545.04%)
Mutual labels:  mybatis, spring-boot, spring
Milkomeda
Spring extend componets which build from experience of bussiness, let developers to develop with Spring Boot as fast as possible.(基于Spring生态打造的一系列来自业务上的快速开发模块集合。)
Stars: ✭ 117 (-10.69%)
Mutual labels:  mybatis, spring-boot, spring
Superman
Superman是什么:构建Java 高级开发技术的知识体系,从基础不断打怪升级成为超人之路(更新中.......)
Stars: ✭ 106 (-19.08%)
Mutual labels:  mybatis, spring-boot, spring
Myuploader Backend
单文件上传,多文件上传,大文件上传,断点续传,文件秒传,图片上传
Stars: ✭ 177 (+35.11%)
Mutual labels:  mybatis, spring-boot, spring
Ibase4j
Spring,SpringBoot 2.0,SpringMVC,Mybatis,mybatis-plus,motan/dubbo分布式,Redis缓存,Shiro权限管理,Spring-Session单点登录,Quartz分布式集群调度,Restful服务,QQ/微信登录,App token登录,微信/支付宝支付;日期转换、数据类型转换、序列化、汉字转拼音、身份证号码验证、数字转人民币、发送短信、发送邮件、加密解密、图片处理、excel导入导出、FTP/SFTP/fastDFS上传下载、二维码、XML读写、高精度计算、系统配置工具类等等。
Stars: ✭ 1,548 (+1081.68%)
Mutual labels:  mybatis, spring-boot, spring
Spring Boot Blog
spring boot & mybatis 示例
Stars: ✭ 154 (+17.56%)
Mutual labels:  mybatis, spring-boot, spring
Spring Boot In Action
Spring Boot 系列实战合集
Stars: ✭ 4,153 (+3070.23%)
Mutual labels:  mybatis, spring-boot, spring
Vue Admin Java
spring boot + mybatis + vue + element-ui 实现后台管理API接口 https://lmxdawn.github.io/vue-admin-java
Stars: ✭ 149 (+13.74%)
Mutual labels:  mybatis, spring-boot, spring
Spring Boot Examples
about learning Spring Boot via examples. Spring Boot 教程、技术栈示例代码,快速简单上手教程。
Stars: ✭ 26,812 (+20367.18%)
Mutual labels:  mybatis, spring-boot, spring
Web Development Interview With Java
Java 开发相关技术栈(大中厂)高频面试问题收录。
Stars: ✭ 69 (-47.33%)
Mutual labels:  mybatis, spring-boot, spring
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+41729.77%)
Mutual labels:  mybatis, spring-boot, spring

springboot-multiple-dataSources

前言

spring-boot多数据源自动切换例子项目, 利用spring aop 切面,自动切换数据源。

CommonServiceImpl是公共处理类,Test1ServiceImpl和Test2ServiceImpl是两个数据源分别的业务处理类。定义DataSourceAspect类处理切面。

springboot-multiple-dataSources/src/main/resources目录下的database1.sql和database2.sql是2个数据源初始化脚本

软件环境

IntelliJ IDEA 2016.3.3(或eclipse)

jdk 1.8

maven 3.3.9

使用的技术

在IDE 中查看源码并运行

1. 在IntelliJ IDEA (推荐使用)

File -> Import Project -> select springboot-multiple-dataSources folder -> create project form existing sources -> ...

2. 在Eclipse

File -> Import -> Existing Maven Projects -> ...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].