2
我发现有以下两种方式根据properties创建DruidDataSource。哪种方式是更好的?
DruidDataSource dataSource = new DruidDataSource(); dataSource.configFromPropety(properties);
DruidDataSource dataSource = DruidDataSourceFactory.createDataSource(properties);