# spring-boot-dynamic-datasource **Repository Path**: null_182_6668/spring-boot-dynamic-datasource ## Basic Information - **Project Name**: spring-boot-dynamic-datasource - **Description**: spring-boot druid+jpa 多数据源及读写分离 配置 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2017-10-25 - **Last Updated**: 2022-09-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-boot-dynamic-datasource - spring-boot druid + jpa 多数据源及读写分离 配置 项目启动: - 修改application.yml文件中的ip,数据库,用户名,密码等 - 在mysql建四个数据库:study,study_slave,product,product_salve - 四个库中都导入项目中的user.sql表.修改表数据以区分是哪个库的
![输入图片说明](https://gitee.com/uploads/images/2017/1025/115009_c6d0e8c4_1081778.png "1.png") ![输入图片说明](https://gitee.com/uploads/images/2017/1025/115018_a4f7be9f_1081778.png "2.png") ![输入图片说明](https://gitee.com/uploads/images/2017/1025/115026_41b5d807_1081778.png "3.png") ![输入图片说明](https://gitee.com/uploads/images/2017/1025/115033_aa7d2586_1081778.png "4.png") - 用postman进行测试即可