snaker-core/src/main/java/org/snaker/engine/access/jdbc/JdbcHelper.java
private static void initialize() {
		String driver = ConfigHelper.getProperty("jdbc.driver");
		String url = ConfigHelper.getProperty("jdbc.url");
		String username = ConfigHelper.getProperty("jdbc.username");
		String password = ConfigHelper.getProperty("jdbc.password");
		int maxActive = ConfigHelper.getNumerProperty("jdbc.max.active");
		int maxIdle = ConfigHelper.getNumerProperty("jdbc.max.idle");
		AssertHelper.notNull(driver);
		AssertHelper.notNull(url);
		AssertHelper.notNull(username);
		AssertHelper.notNull(password);
		//初始化DBCP数据源
		BasicDataSource ds = new BasicDataSource();
		ds.setDriverClassName(driver);
		ds.setUrl(url);
		ds.setUsername(username);
		ds.setPassword(password);
        if(maxActive != 0) {
		    ds.setMaxActive(maxActive);
        }
        if(maxIdle != 0) {
		    ds.setMaxIdle(maxIdle);
        }
		dataSource = ds;
	}
private static void initialize() {
		String driver = ConfigHelper.getProperty("jdbc.driver");
		String url = ConfigHelper.getProperty("jdbc.url");
		String username = ConfigHelper.getProperty("jdbc.username");
		String password = ConfigHelper.getProperty("jdbc.password");
		int maxActive = ConfigHelper.getNumerProperty("jdbc.max.active");
		int maxIdle = ConfigHelper.getNumerProperty("jdbc.max.idle");
		AssertHelper.notNull(driver);
		AssertHelper.notNull(url);
		AssertHelper.notNull(username);
		AssertHelper.notNull(password);
		//初始化DBCP数据源
		BasicDataSource ds = new BasicDataSource();
		ds.setDriverClassName(driver);
		ds.setUrl(url);
		ds.setUsername(username);
		ds.setPassword(password);
        if(maxActive != 0) {
		    ds.setMaxActive(maxActive);
        }
        if(maxIdle != 0) {
		    ds.setMaxIdle(maxIdle);
        }
		dataSource = ds;
	}
在没有任何dataSource注入的情况下，默认使用dbcp数据源