# chorye-datasource-multiple-transaction **Repository Path**: chorye/chorye-datasource-auto-transaction ## Basic Information - **Project Name**: chorye-datasource-multiple-transaction - **Description**: SpringBoot 2.0 + Mybatis 多数据源,同时添加传统的分布式事务解决方案 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-13 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README SpringBoot 2.0 + Mybatis 多数据源自动切换,同时添加传统的分布式事务解决方案,使用springboot+jta+atomikos 分布式事物管理 (不适合微服务,需要拿到数据源然后注册到同一个全局事务里面去) ```atomikos的大概使用步骤``` 添加依赖、使用atomikos配置数据源、去掉普通事务管理器的bean配置,方法添加事务注解