File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 7
7
- [ druid] ( https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/druid ) : 通过切面和注解方式实现的使用 Druid 连接池的动态数据源切换
8
8
- [ aspect_dao] ( https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/aspect_dao ) : 通过切面实现的 DAO 层的动态数据源切换
9
9
- [ roundrobin] ( https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/roundrobin ) : 通过切面使用轮询方式实现的只读数据源负载均衡
10
+ - [ hikari] ( https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/hikari ) : 升级到SpringBoot 2.0, 数据源使用 Hikari
10
11
11
12
> 以上分支都是基于 dev 分支修改或扩充而来,基本涵盖了常用的多数据源动态切换的方式,基本的原理都一样,都是通过切面根据不同的条件在执行数据库操作前切换数据源
12
13
@@ -650,4 +651,4 @@ public interface ProductDao {
650
651
651
652
## 注意
652
653
653
- > 在该应用中因为使用了 DAO 层的切面切换数据源,所以 ` @Transactional ` 注解不能加在类上,只能用于方法;有 ` @Trasactional ` 注解的方法无法切换数据源
654
+ > 在该应用中因为使用了 DAO 层的切面切换数据源,所以 ` @Transactional ` 注解不能加在类上,只能用于方法;有 ` @Trasactional ` 注解的方法无法切换数据源
You can’t perform that action at this time.
0 commit comments