52ky 发表于 2022-10-23 19:08:33

springmvc+mybatis 多数据源动态切换

springmvc+mybatisaop切面实现多数据源动态切换本资料共包括以下附件:
Multi-Datasource-Autoswitch-master\src\main\java\dal\dataobject\myone\User.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\dataobject\mytwo\User.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\datasourceswitch\MultipleDataSource.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\datasourceswitch\MultipleDataSourceAspectAdvice.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\mapper\myone\OneUserManageMapper.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\mapper\mytwo\TwoUserManageMapper.java
Multi-Datasource-Autoswitch-master\src\main\java\Demo.java
Multi-Datasource-Autoswitch-master\src\main\resources\mapper\OneUserManageMapper.xml
Multi-Datasource-Autoswitch-master\src\main\resources\mapper\TwoUserManageMapper.xml
Multi-Datasource-Autoswitch-master\src\main\resources\applications.xml
Multi-Datasource-Autoswitch-master\src\main\resources\jdbc.properties
Multi-Datasource-Autoswitch-master\target\classes\dal\dataobject\myone\User.class
Multi-Datasource-Autoswitch-master\target\classes\dal\dataobject\mytwo\User.class
Multi-Datasource-Autoswitch-master\target\classes\dal\datasourceswitch\MultipleDataSource$1.class
Multi-Datasource-Autoswitch-master\target\classes\dal\datasourceswitch\MultipleDataSource.class
Multi-Datasource-Autoswitch-master\target\classes\dal\datasourceswitch\MultipleDataSourceAspectAdvice.class
Multi-Datasource-Autoswitch-master\target\classes\dal\mapper\myone\OneUserManageMapper.class
Multi-Datasource-Autoswitch-master\target\classes\dal\mapper\mytwo\TwoUserManageMapper.class
Multi-Datasource-Autoswitch-master\target\classes\mapper\OneUserManageMapper.xml
Multi-Datasource-Autoswitch-master\target\classes\mapper\TwoUserManageMapper.xml
Multi-Datasource-Autoswitch-master\target\classes\applications.xml
Multi-Datasource-Autoswitch-master\target\classes\Demo.class
Multi-Datasource-Autoswitch-master\target\classes\jdbc.properties
Multi-Datasource-Autoswitch-master\mysql.sql
Multi-Datasource-Autoswitch-master\pom.xml
Multi-Datasource-Autoswitch-master\README.md
Multi-Datasource-Autoswitch-master\resourcegroup.iml

(Spring mvc mybatisaop aspect enables dynamic switching of multiple data sources This document includes the following attachments:
Multi-Datasource-Autoswitch-master\src\main\java\dal\dataobject\myone\User.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\dataobject\mytwo\User.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\datasourceswitch\MultipleDataSource.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\datasourceswitch\MultipleDataSourceAspectAdvice.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\mapper\myone\OneUserManageMapper.java
Multi-Datasource-Autoswitch-master\src\main\java\dal\mapper\mytwo\TwoUserManageMapper.java
Multi-Datasource-Autoswitch-master\src\main\java\Demo.java
Multi-Datasource-Autoswitch-master\src\main\resources\mapper\OneUserManageMapper.xml
Multi-Datasource-Autoswitch-master\src\main\resources\mapper\TwoUserManageMapper.xml
Multi-Datasource-Autoswitch-master\src\main\resources\applications.xml
Multi-Datasource-Autoswitch-master\src\main\resources\jdbc.properties
Multi-Datasource-Autoswitch-master\target\classes\dal\dataobject\myone\User.class
Multi-Datasource-Autoswitch-master\target\classes\dal\dataobject\mytwo\User.class
Multi-Datasource-Autoswitch-master\target\classes\dal\datasourceswitch\MultipleDataSource$1.class
Multi-Datasource-Autoswitch-master\target\classes\dal\datasourceswitch\MultipleDataSource.class
Multi-Datasource-Autoswitch-master\target\classes\dal\datasourceswitch\MultipleDataSourceAspectAdvice.class
Multi-Datasource-Autoswitch-master\target\classes\dal\mapper\myone\OneUserManageMapper.class
Multi-Datasource-Autoswitch-master\target\classes\dal\mapper\mytwo\TwoUserManageMapper.class
Multi-Datasource-Autoswitch-master\target\classes\mapper\OneUserManageMapper.xml
Multi-Datasource-Autoswitch-master\target\classes\mapper\TwoUserManageMapper.xml
Multi-Datasource-Autoswitch-master\target\classes\applications.xml
Multi-Datasource-Autoswitch-master\target\classes\Demo.class
Multi-Datasource-Autoswitch-master\target\classes\jdbc.properties
Multi-Datasource-Autoswitch-master\mysql.sql
Multi-Datasource-Autoswitch-master\pom.xml
Multi-Datasource-Autoswitch-master\README.md
Multi-Datasource-Autoswitch-master\resourcegroup.iml)




页: [1]
查看完整版本: springmvc+mybatis 多数据源动态切换