Springboot? 配置Druid多數(shù)據(jù)源
@MapperScan(basePackages?=?ClusterDataSourceConfig.PACKAGE,?sqlSessionFactoryRef?=?"clusterSqlSessionFactory")
public?class?ClusterDataSourceConfig?{
聲明?sqlSessionFactoryRef?這個(gè)有什么用??
還有就是可以放在任意地方嗎
配置多數(shù)據(jù)源這個(gè)注釋的作用
韓水琦
2018-08-30 15:37:16