mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
WallConfig support property 'druid.wall.selectLimit'.
This commit is contained in:
@@ -22,6 +22,7 @@ import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentSkipListSet;
|
||||
|
||||
import static com.alibaba.druid.util.Utils.getBoolean;
|
||||
import static com.alibaba.druid.util.Utils.getInteger;
|
||||
import static com.alibaba.druid.wall.spi.WallVisitorUtils.loadResource;
|
||||
|
||||
public class WallConfig implements WallConfigMBean {
|
||||
@@ -845,5 +846,11 @@ public class WallConfig implements WallConfigMBean {
|
||||
this.setMultiStatementAllow(propertyValue);
|
||||
}
|
||||
}
|
||||
{
|
||||
Integer propertyValue = getInteger(properties, "druid.wall.selectLimit");
|
||||
if (propertyValue != null) {
|
||||
this.setSelectLimit(propertyValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user