diff --git a/hutool-core/src/main/java/cn/hutool/core/net/NetUtil.java b/hutool-core/src/main/java/cn/hutool/core/net/NetUtil.java
index 4ff2a8284..2442e5b98 100755
--- a/hutool-core/src/main/java/cn/hutool/core/net/NetUtil.java
+++ b/hutool-core/src/main/java/cn/hutool/core/net/NetUtil.java
@@ -48,9 +48,12 @@ import java.util.function.Predicate;
*/
public class NetUtil {
+ /**
+ * 本地IP
+ */
public final static String LOCAL_IP = Ipv4Util.LOCAL_IP;
- public static String localhostName;
+ private static String localhostName;
/**
* 默认最小端口,1024
@@ -841,8 +844,7 @@ public class NetUtil {
}
/**
- * 获取DNS信息,如TXT信息:
- *
+ * 获取DNS信息,如TXT信息:
*
* NetUtil.attrNames("hutool.cn", "TXT")
*
diff --git a/hutool-db/src/test/resources/config/mongo.setting b/hutool-db/src/test/resources/config/mongo.setting
deleted file mode 100644
index b50b4d026..000000000
--- a/hutool-db/src/test/resources/config/mongo.setting
+++ /dev/null
@@ -1,20 +0,0 @@
-#每个主机答应的连接数(每个主机的连接池大小),当连接池被用光时,会被阻塞住 ,默以为10 --int
-connectionsPerHost=100
-#线程队列数,它以connectionsPerHost值相乘的结果就是线程队列最大值。如果连接线程排满了队列就会抛出“Out of semaphores to get db”错误 --int
-threadsAllowedToBlockForConnectionMultiplier=10
-#被阻塞线程从连接池获取连接的最长等待时间(ms) --int
-maxWaitTime = 120000
-#在建立(打开)套接字连接时的超时时间(ms),默以为0(无穷) --int
-connectTimeout=0
-#套接字超时时间;该值会被传递给Socket.setSoTimeout(int)。默以为0(无穷) --int
-socketTimeout=0
-#是否打开长连接. defaults to false --boolean
-socketKeepAlive=false
-
-#---------------------------------- MongoDB实例连接
-[master]
-host = localhost:27017
-
-[slave]
-host = localhost:27018
-#-----------------------------------------------------
diff --git a/hutool-db/src/test/resources/config/redis.setting b/hutool-db/src/test/resources/config/redis.setting
deleted file mode 100644
index bf20fc0a2..000000000
--- a/hutool-db/src/test/resources/config/redis.setting
+++ /dev/null
@@ -1,60 +0,0 @@
-# suppress inspection "Annotator" for whole file
-#----------------------------------------------------------------------------------
-# Redis客户端配置样例
-# 每一个分组代表一个Redis实例
-# 无分组的Pool配置为所有分组的共用配置,如果分组自己定义Pool配置,则覆盖共用配置
-# 池配置来自于:https://www.cnblogs.com/jklk/p/7095067.html
-#----------------------------------------------------------------------------------
-
-#----- 默认(公有)配置
-# 地址,默认localhost
-host = localhost
-# 端口,默认6379
-port = 6379
-# 超时,默认2000
-timeout = 2000
-# 连接超时,默认timeout
-connectionTimeout = 2000
-# 读取超时,默认timeout
-soTimeout = 2000
-# 密码,默认无
-#password =
-# 数据库序号,默认0
-database = 0
-# 客户端名,默认"Hutool"
-clientName = Hutool
-# SSL连接,默认false
-ssl = false;
-
-#----- 自定义分组的连接
-[custom]
-# 地址,默认localhost
-host = localhost
-# 连接耗尽时是否阻塞, false报异常,ture阻塞直到超时, 默认true
-BlockWhenExhausted = true;
-# 设置的逐出策略类名, 默认DefaultEvictionPolicy(当连接超过最大空闲时间,或连接数超过最大空闲连接数)
-evictionPolicyClassName = org.apache.commons.pool2.impl.DefaultEvictionPolicy
-# 是否启用pool的jmx管理功能, 默认true
-jmxEnabled = true;
-# 是否启用后进先出, 默认true
-lifo = true;
-# 最大空闲连接数, 默认8个
-maxIdle = 8
-# 最小空闲连接数, 默认0
-minIdle = 0
-# 最大连接数, 默认8个
-maxTotal = 8
-# 获取连接时的最大等待毫秒数(如果设置为阻塞时BlockWhenExhausted),如果超时就抛异常, 小于零:阻塞不确定的时间, 默认-1
-maxWaitMillis = -1
-# 逐出连接的最小空闲时间 默认1800000毫秒(30分钟)
-minEvictableIdleTimeMillis = 1800000
-# 每次逐出检查时 逐出的最大数目 如果为负数就是 : 1/abs(n), 默认3
-numTestsPerEvictionRun = 3;
-# 对象空闲多久后逐出, 当空闲时间>该值 且 空闲连接>最大空闲数 时直接逐出,不再根据MinEvictableIdleTimeMillis判断 (默认逐出策略)
-SoftMinEvictableIdleTimeMillis = 1800000
-# 在获取连接的时候检查有效性, 默认false
-testOnBorrow = false
-# 在空闲时检查有效性, 默认false
-testWhileIdle = false
-# 逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
-timeBetweenEvictionRunsMillis = -1
diff --git a/hutool-extra/src/main/java/cn/hutool/extra/qrcode/QrCodeUtil.java b/hutool-extra/src/main/java/cn/hutool/extra/qrcode/QrCodeUtil.java
index f5b5279d7..ac1461838 100755
--- a/hutool-extra/src/main/java/cn/hutool/extra/qrcode/QrCodeUtil.java
+++ b/hutool-extra/src/main/java/cn/hutool/extra/qrcode/QrCodeUtil.java
@@ -29,8 +29,14 @@ import java.util.Map;
*/
public class QrCodeUtil {
- public static final String QR_TYPE_SVG = "svg";// SVG矢量图格式
- public static final String QR_TYPE_TXT = "txt";// Ascii Art字符画文本
+ /**
+ * SVG矢量图格式
+ */
+ public static final String QR_TYPE_SVG = "svg";
+ /**
+ * Ascii Art字符画文本
+ */
+ public static final String QR_TYPE_TXT = "txt";
/**
* 生成代 logo 图片的 Base64 编码格式的二维码,以 String 形式表示
@@ -324,6 +330,7 @@ public class QrCodeUtil {
* BitMatrix转ASCII Art字符画形式的二维码
*
* @param bitMatrix BitMatrix
+ * @param qrConfig QR设置
* @return ASCII Art字符画形式的二维码
* @since 5.8.6
*/