Package com.alibaba.druid.support.ibatis

Examples of com.alibaba.druid.support.ibatis.DruidDataSourceFactory


import com.alibaba.druid.support.ibatis.DruidDataSourceFactory;


public class DruidDataSourceFactoryTest extends TestCase {
    public void test_facttory() throws Exception {
        DruidDataSourceFactory factory = new DruidDataSourceFactory();
        Properties properties = new Properties();
        properties.setProperty("url", "jdbc:mock:xx");
        factory.initialize(properties);
        DruidDataSource dataSource = (DruidDataSource) factory.getDataSource();
        dataSource.close();
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.support.ibatis.DruidDataSourceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.