mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved mysql/oracle sql parser.
This commit is contained in:
@@ -181,6 +181,24 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
}
|
||||
|
||||
public void configFromPropety(Properties properties) {
|
||||
{
|
||||
String property = properties.getProperty("druid.url");
|
||||
if (property != null) {
|
||||
this.setUrl(property);
|
||||
}
|
||||
}
|
||||
{
|
||||
String property = properties.getProperty("druid.username");
|
||||
if (property != null) {
|
||||
this.setUsername(property);
|
||||
}
|
||||
}
|
||||
{
|
||||
String property = properties.getProperty("druid.password");
|
||||
if (property != null) {
|
||||
this.setPassword(property);
|
||||
}
|
||||
}
|
||||
{
|
||||
Boolean value = getBoolean(properties, "druid.testWhileIdle");
|
||||
if (value != null) {
|
||||
|
||||
Reference in New Issue
Block a user