mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -17,6 +17,7 @@ public class ModifierUtilTest {
|
|||||||
ModifierUtil.ModifierType.STATIC)
|
ModifierUtil.ModifierType.STATIC)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ddd() {
|
private static void ddd() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
package cn.hutool.db.ds.simple;
|
package cn.hutool.db.ds.simple;
|
||||||
|
|
||||||
|
import cn.hutool.core.clone.CloneRuntimeException;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
@@ -7,8 +10,6 @@ import java.sql.SQLException;
|
|||||||
import java.sql.SQLFeatureNotSupportedException;
|
import java.sql.SQLFeatureNotSupportedException;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据源抽象实现
|
* 数据源抽象实现
|
||||||
* @author Looly
|
* @author Looly
|
||||||
@@ -53,4 +54,13 @@ public abstract class AbstractDataSource implements DataSource, Cloneable, Close
|
|||||||
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
||||||
throw new SQLFeatureNotSupportedException("DataSource can't support getParentLogger method!");
|
throw new SQLFeatureNotSupportedException("DataSource can't support getParentLogger method!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AbstractDataSource clone() {
|
||||||
|
try {
|
||||||
|
return (AbstractDataSource) super.clone();
|
||||||
|
} catch (final CloneNotSupportedException e) {
|
||||||
|
throw new CloneRuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@ key = value
|
|||||||
|
|
||||||
#中括表示一个分组,其下面的所有属性归属于这个分组,在此分组名为demo,也可以没有分组
|
#中括表示一个分组,其下面的所有属性归属于这个分组,在此分组名为demo,也可以没有分组
|
||||||
#分组后的键值对在Setting对象中表现形式是:demo.key,也可以使用相应的方法取值
|
#分组后的键值对在Setting对象中表现形式是:demo.key,也可以使用相应的方法取值
|
||||||
[demo]=
|
[demo]
|
||||||
# 类似于Properties的键值对
|
# 类似于Properties的键值对
|
||||||
key = value
|
key = value
|
||||||
# 支持变量替换(在new Setting的时候需要设置isUseVariable为true)
|
# 支持变量替换(在new Setting的时候需要设置isUseVariable为true)
|
||||||
|
Reference in New Issue
Block a user