2020
09-24
09-24
Springboot mybais配置多数据源过程解析
一、分包方式实现:1、在application.properties中配置两个数据库:#druid连接池#dataSoureOne(这里是我本地的数据源)spring.datasource.one.type=com.alibaba.druid.pool.DruidDataSourcespring.datasource.one.driver-class-name=com.mysql.jdbc.Driverspring.datasource.one.jdbc-url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTCspring.datasource.one.u...
继续阅读 >