mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
package org.dromara.hutool.db.ds;
|
||||
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.lang.Singleton;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.map.SafeConcurrentHashMap;
|
||||
import org.dromara.hutool.core.spi.SpiUtil;
|
||||
@@ -42,17 +43,13 @@ public class DSPool implements Closeable {
|
||||
|
||||
private static final String CONNECTION_PREFIX = "connection.";
|
||||
|
||||
private static class SingletonHolder {
|
||||
private static final DSPool INSTANCE = new DSPool();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单例池对象
|
||||
*
|
||||
* @return 数据源池
|
||||
*/
|
||||
public static DSPool getInstance() {
|
||||
return SingletonHolder.INSTANCE;
|
||||
return Singleton.get(DSPool.class.getName(), DSPool::new);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user