Commit 2ac1c598 by 李传峰

处理druid验证方式,禁用ping,使用validSql

parent 7c2b98de
......@@ -41,6 +41,10 @@ public class DataSourceConfig {
public static final String SESSION_FACTORY_NAME = "sqlSessionFactory";
public static final String SESSION_TEMPLATE_NAME = "sqlSessionTemplate";
static {
System.setProperty("druid.mysql.usePingMethod","false");
}
private String url;
private String type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment