├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── log.log ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── example │ │ ├── Application.java │ │ ├── datasource │ │ ├── DataSourceAspect.java │ │ ├── DataSourceConfig.java │ │ ├── DataSourceType.java │ │ ├── DynamicDataSource.java │ │ ├── JdbcContextHolder.java │ │ └── MyDataSource.java │ │ ├── filter │ │ └── TestFilter.java │ │ └── game │ │ ├── controller │ │ └── YQSGameController.java │ │ ├── domain │ │ ├── mapper │ │ │ └── TestMapper.java │ │ └── pojo │ │ │ └── TestPojo.java │ │ └── service │ │ ├── TestService.java │ │ └── impl │ │ └── TestServiceImpl.java └── resources │ ├── application.yml │ ├── mapper │ └── TestMapper.xml │ └── mybatis-config.xml └── test └── java └── com └── example └── demo └── DemoApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ##代码介绍: http://blog.csdn.net/xiazai353503200/article/details/79390879 2 | -------------------------------------------------------------------------------- /log.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/log.log -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/example/Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/Application.java -------------------------------------------------------------------------------- /src/main/java/com/example/datasource/DataSourceAspect.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/datasource/DataSourceAspect.java -------------------------------------------------------------------------------- /src/main/java/com/example/datasource/DataSourceConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/datasource/DataSourceConfig.java -------------------------------------------------------------------------------- /src/main/java/com/example/datasource/DataSourceType.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/datasource/DataSourceType.java -------------------------------------------------------------------------------- /src/main/java/com/example/datasource/DynamicDataSource.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/datasource/DynamicDataSource.java -------------------------------------------------------------------------------- /src/main/java/com/example/datasource/JdbcContextHolder.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/datasource/JdbcContextHolder.java -------------------------------------------------------------------------------- /src/main/java/com/example/datasource/MyDataSource.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/datasource/MyDataSource.java -------------------------------------------------------------------------------- /src/main/java/com/example/filter/TestFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/filter/TestFilter.java -------------------------------------------------------------------------------- /src/main/java/com/example/game/controller/YQSGameController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/game/controller/YQSGameController.java -------------------------------------------------------------------------------- /src/main/java/com/example/game/domain/mapper/TestMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/game/domain/mapper/TestMapper.java -------------------------------------------------------------------------------- /src/main/java/com/example/game/domain/pojo/TestPojo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/game/domain/pojo/TestPojo.java -------------------------------------------------------------------------------- /src/main/java/com/example/game/service/TestService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/game/service/TestService.java -------------------------------------------------------------------------------- /src/main/java/com/example/game/service/impl/TestServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/java/com/example/game/service/impl/TestServiceImpl.java -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/resources/application.yml -------------------------------------------------------------------------------- /src/main/resources/mapper/TestMapper.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/resources/mapper/TestMapper.xml -------------------------------------------------------------------------------- /src/main/resources/mybatis-config.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/main/resources/mybatis-config.xml -------------------------------------------------------------------------------- /src/test/java/com/example/demo/DemoApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wangdali123/springboot-datasources/HEAD/src/test/java/com/example/demo/DemoApplicationTests.java --------------------------------------------------------------------------------