Skip to content

Commit c69cb5a

Browse files
authored
Add Hikari datasource
1 parent 30d54c2 commit c69cb5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [druid](https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/druid): 通过切面和注解方式实现的使用 Druid 连接池的动态数据源切换
88
- [aspect_dao](https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/aspect_dao): 通过切面实现的 DAO 层的动态数据源切换
99
- [roundrobin](https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/roundrobin): 通过切面使用轮询方式实现的只读数据源负载均衡
10+
- [hikari](https://github.com/helloworlde/SpringBoot-DynamicDataSource/tree/hikari): 升级到SpringBoot 2.0, 数据源使用 Hikari
1011

1112
> 以上分支都是基于 dev 分支修改或扩充而来,基本涵盖了常用的多数据源动态切换的方式,基本的原理都一样,都是通过切面根据不同的条件在执行数据库操作前切换数据源
1213
@@ -650,4 +651,4 @@ public interface ProductDao {
650651

651652
## 注意
652653

653-
> 在该应用中因为使用了 DAO 层的切面切换数据源,所以 `@Transactional` 注解不能加在类上,只能用于方法;有 `@Trasactional`注解的方法无法切换数据源
654+
> 在该应用中因为使用了 DAO 层的切面切换数据源,所以 `@Transactional` 注解不能加在类上,只能用于方法;有 `@Trasactional`注解的方法无法切换数据源

0 commit comments

Comments
 (0)