赞
踩
yml配置
spring: datasource: main: url: jdbc:mysql://222.128.10.8:8366/abutment_biz?useSSL=false username: root password: xxxxx driver-class-name: com.mysql.jdbc.Driver bigdata: url: jdbc:mysql://222.128.10.8:8366/abutment?useSSL=false username: root password: xxxxx driver-class-name: com.mysql.jdbc.Driver statistical: url: jdbc:mysql://222.128.10.8:8366/business_result?useSSL=false username: root password: xxxxx driver-class-name: com.mysql.jdbc.Driver
多数据源配置
package com.zjht.abutment.config;
import javax.sql.DataSource;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.beans.factory.annotation
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。