本文主要是介绍springboot上用mybaties与phoenix和hbase进行整合,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
配置类
import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;import javax.sql.DataSource;/***@描述: hbase-phoenix 数据源模版*/
@Configuration
@PropertySource(value="classpath:application.properties")
@MapperScan(basePackages = HbasePhoenixDataSourceConfig.PACKAGE,sqlSessionFactoryRef = HbasePhoenixDataSourceConfig.HBA
这篇关于springboot上用mybaties与phoenix和hbase进行整合的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!