|
|
|
@ -77,7 +77,8 @@ public class DruidProperties |
|
|
|
|
/** 归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。 */ |
|
|
|
|
datasource.setTestOnReturn(testOnReturn); |
|
|
|
|
|
|
|
|
|
Properties properties = new Properties(); |
|
|
|
|
// TODO: 2023/10/11 不加密版本
|
|
|
|
|
/*Properties properties = new Properties(); |
|
|
|
|
properties.setProperty("config.decrypt","true"); |
|
|
|
|
properties.setProperty("config.decrypt.key",publicKey); |
|
|
|
|
datasource.setConnectProperties(properties); |
|
|
|
@ -85,7 +86,7 @@ public class DruidProperties |
|
|
|
|
datasource.setFilters("config"); |
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
return datasource; |
|
|
|
|
} |
|
|
|
|