mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add property valid check.
This commit is contained in:
@@ -1114,6 +1114,10 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
}
|
||||
|
||||
public void setDriverClassName(String driverClass) {
|
||||
if (driverClass != null && driverClass.length() > 256) {
|
||||
throw new IllegalArgumentException("driverClassName length > 256.");
|
||||
}
|
||||
|
||||
if (inited) {
|
||||
if (StringUtils.equals(this.driverClass, driverClass)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user