【发布时间】:2017-09-22 19:44:36
【问题描述】:
我想添加 enable ssl 、 ssltrustoreLocation 和 ssltrustorepassword for BasicDataSource,谁能告诉我如何添加。
BasicDataSource dataSource = new BasicDataSource(); //NOSONAR
dataSource.setDriverClassName(driverName);
dataSource.setUrl(url);
dataSource.setUsername(userName);
dataSource.setPassword(password);
dataSource.setMaxWaitMillis(Integer.parseInt(dbMaxWaitTime));
dataSource.setMinIdle(Integer.parseInt(dbMinPoolSize));
dataSource.setMaxIdle(Integer.parseInt(dbMaxPoolSize));
【问题讨论】:
标签: database ssl db2 datasource truststore