This commit is contained in:
choweli 2025-04-15 17:02:41 +08:00
parent b0e37e3ef3
commit 22d487624d
2867 changed files with 9839 additions and 10677 deletions

0
README-EN.md Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

View File

@ -1,13 +0,0 @@
# Security Policy
## Supported Versions支持的版本
| Version | Supported |
|---------|--------------------|
| 6.x.x | :white_check_mark: |
## Reporting a Vulnerability报告漏洞
如果你发现有安全问题或漏洞,请发送邮件到`loolly@aliyun.com`。
To report any found security issues or vulnerabilities, please send a mail to `loolly@aliyun.com`.

View File

@ -16,12 +16,12 @@
# limitations under the License. # limitations under the License.
# #
echo -e "\033[32mCheckout to v6-dev\033[0m" echo -e "\033[32mCheckout to v7-dev\033[0m"
git checkout v6-dev git checkout v7-dev
echo -e "\033[32mPush to Github(origin) v6-dev\033[0m" echo -e "\033[32mPush to Github(origin) v7-dev\033[0m"
git push origin v6-dev git push origin v7-dev
echo -e "\033[32mPush to Gitee v6-dev\033[0m" echo -e "\033[32mPush to Gitee v7-dev\033[0m"
git push osc v6-dev git push osc v7-dev
echo -e "\033[32mPush to Gitcode v6-dev\033[0m" echo -e "\033[32mPush to Gitcode v7-dev\033[0m"
git push gitcode v6-dev git push gitcode v7-dev

View File

@ -19,15 +19,15 @@
# show Hutool logo # show Hutool logo
"$(dirname ${BASH_SOURCE[0]})"/logo.sh "$(dirname ${BASH_SOURCE[0]})"/logo.sh
echo -e "\033[32mCheckout to v6-master\033[0m" echo -e "\033[32mCheckout to v7-master\033[0m"
git checkout v6-master git checkout v7-master
echo -e "\033[32mMerge v6-dev branch\033[0m" echo -e "\033[32mMerge v7-dev branch\033[0m"
git merge v6-dev -m 'Prepare release' git merge v7-dev -m 'Prepare release'
echo -e "\033[32mPush to Github(origin) v6-master\033[0m" echo -e "\033[32mPush to Github(origin) v7-master\033[0m"
git push origin v6-master git push origin v7-master
echo -e "\033[32mPush to Gitee v6-master\033[0m" echo -e "\033[32mPush to Gitee v7-master\033[0m"
git push osc v6-master git push osc v7-master
echo -e "\033[32mPush to Gitcode v6-master\033[0m" echo -e "\033[32mPush to Gitcode v7-master\033[0m"
git push gitcode v6-master git push gitcode v7-master

View File

@ -19,10 +19,10 @@
# show Hutool logo # show Hutool logo
"$(dirname ${BASH_SOURCE[0]})"/logo.sh "$(dirname ${BASH_SOURCE[0]})"/logo.sh
# 保证当前在v6-dev分支 # 保证当前在v7-dev分支
git checkout v6-dev git checkout v7-dev
# 同时同步Gitee、Github和Gitcode的库 # 同时同步Gitee、Github和Gitcode的库
git pull osc v6-dev git pull osc v7-dev
git pull origin v6-dev git pull origin v7-dev
git pull gitcode v6-dev git pull gitcode v7-dev

View File

@ -1 +1 @@
6.0.0-M22 7.0.0.M1

View File

@ -1 +1 @@
var version = '6.0.0-M22' var version = '7.0.0.M1'

View File

@ -7,9 +7,9 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<parent> <parent>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-parent</artifactId> <artifactId>hutool-parent</artifactId>
<version>6.0.0-M22</version> <version>7.0.0.M1</version>
</parent> </parent>
<artifactId>hutool-ai</artifactId> <artifactId>hutool-ai</artifactId>
@ -17,34 +17,34 @@
<description>Hutool AI大模型封装</description> <description>Hutool AI大模型封装</description>
<properties> <properties>
<Automatic-Module-Name>org.dromara.hutool.ai</Automatic-Module-Name> <Automatic-Module-Name>cn.hutool.v7.ai</Automatic-Module-Name>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-core</artifactId> <artifactId>hutool-core</artifactId>
<version>${project.parent.version}</version> <version>${project.parent.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-http</artifactId> <artifactId>hutool-http</artifactId>
<version>${project.parent.version}</version> <version>${project.parent.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-log</artifactId> <artifactId>hutool-log</artifactId>
<version>${project.parent.version}</version> <version>${project.parent.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-json</artifactId> <artifactId>hutool-json</artifactId>
<version>${project.parent.version}</version> <version>${project.parent.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-swing</artifactId> <artifactId>hutool-swing</artifactId>
<version>${project.parent.version}</version> <version>${project.parent.version}</version>
<scope>test</scope> <scope>test</scope>

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;
import org.dromara.hutool.core.exception.HutoolException; import cn.hutool.v7.core.exception.HutoolException;
/** /**
* 异常处理类 * 异常处理类

View File

@ -14,12 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
import org.dromara.hutool.ai.core.AIServiceProvider; import cn.hutool.v7.ai.core.AIServiceProvider;
import org.dromara.hutool.core.map.concurrent.SafeConcurrentHashMap; import cn.hutool.v7.core.map.concurrent.SafeConcurrentHashMap;
import java.util.Map; import java.util.Map;
import java.util.ServiceLoader; import java.util.ServiceLoader;

View File

@ -14,15 +14,15 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.ai.model.deepseek.DeepSeekService; import cn.hutool.v7.ai.model.deepseek.DeepSeekService;
import org.dromara.hutool.ai.model.doubao.DoubaoService; import cn.hutool.v7.ai.model.doubao.DoubaoService;
import org.dromara.hutool.ai.model.grok.GrokService; import cn.hutool.v7.ai.model.grok.GrokService;
import org.dromara.hutool.ai.model.openai.OpenaiService; import cn.hutool.v7.ai.model.openai.OpenaiService;
import java.util.List; import java.util.List;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;
/** /**
* 模型厂商的名称不指具体的模型 * 模型厂商的名称不指具体的模型

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;
/** /**
* 各模型厂商包含的model指具体的模型 * 各模型厂商包含的model指具体的模型

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
import java.util.Map; import java.util.Map;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
import org.dromara.hutool.core.map.concurrent.SafeConcurrentHashMap; import cn.hutool.v7.core.map.concurrent.SafeConcurrentHashMap;
import java.util.Map; import java.util.Map;
import java.util.ServiceLoader; import java.util.ServiceLoader;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
import java.util.List; import java.util.List;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
/** /**
* 用于加载AI服务,每一个通过SPI创建的AI服务都要实现此接口 * 用于加载AI服务,每一个通过SPI创建的AI服务都要实现此接口

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
import org.dromara.hutool.ai.AIException; import cn.hutool.v7.ai.AIException;
import org.dromara.hutool.http.HttpGlobalConfig; import cn.hutool.v7.http.HttpGlobalConfig;
import org.dromara.hutool.http.HttpUtil; import cn.hutool.v7.http.HttpUtil;
import org.dromara.hutool.http.client.Response; import cn.hutool.v7.http.client.Response;
import org.dromara.hutool.http.meta.HeaderName; import cn.hutool.v7.http.meta.HeaderName;
import org.dromara.hutool.http.meta.Method; import cn.hutool.v7.http.meta.Method;
import java.util.Map; import java.util.Map;

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
import org.dromara.hutool.core.map.concurrent.SafeConcurrentHashMap; import cn.hutool.v7.core.map.concurrent.SafeConcurrentHashMap;
import java.util.Map; import java.util.Map;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;
/** /**
* 公共Message类 * 公共Message类

View File

@ -21,4 +21,4 @@
* @since 6.0.0 * @since 6.0.0
*/ */
package org.dromara.hutool.ai.core; package cn.hutool.v7.ai.core;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.deepseek; package cn.hutool.v7.ai.model.deepseek;
/** /**
* deepSeek公共类 * deepSeek公共类

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.deepseek; package cn.hutool.v7.ai.model.deepseek;
import org.dromara.hutool.ai.Models; import cn.hutool.v7.ai.Models;
import org.dromara.hutool.ai.core.BaseConfig; import cn.hutool.v7.ai.core.BaseConfig;
/** /**
* DeepSeek配置类初始化API接口地址设置默认的模型 * DeepSeek配置类初始化API接口地址设置默认的模型

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.deepseek; package cn.hutool.v7.ai.model.deepseek;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.AIServiceProvider; import cn.hutool.v7.ai.core.AIServiceProvider;
/** /**
* 创建DeepSeek服务实现类 * 创建DeepSeek服务实现类

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.deepseek; package cn.hutool.v7.ai.model.deepseek;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
/** /**
* deepSeek支持的扩展接口 * deepSeek支持的扩展接口

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.deepseek; package cn.hutool.v7.ai.model.deepseek;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.BaseAIService; import cn.hutool.v7.ai.core.BaseAIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.http.client.Response; import cn.hutool.v7.http.client.Response;
import org.dromara.hutool.json.JSONUtil; import cn.hutool.v7.json.JSONUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@ -21,4 +21,4 @@
* @since 6.0.0 * @since 6.0.0
*/ */
package org.dromara.hutool.ai.model.deepseek; package cn.hutool.v7.ai.model.deepseek;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.doubao; package cn.hutool.v7.ai.model.doubao;
/** /**
* doubao公共类 * doubao公共类

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.doubao; package cn.hutool.v7.ai.model.doubao;
import org.dromara.hutool.ai.Models; import cn.hutool.v7.ai.Models;
import org.dromara.hutool.ai.core.BaseConfig; import cn.hutool.v7.ai.core.BaseConfig;
/** /**
* Doubao配置类初始化API接口地址设置默认的模型 * Doubao配置类初始化API接口地址设置默认的模型

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.doubao; package cn.hutool.v7.ai.model.doubao;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.AIServiceProvider; import cn.hutool.v7.ai.core.AIServiceProvider;
/** /**
* 创建Doubap服务实现类 * 创建Doubap服务实现类

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.doubao; package cn.hutool.v7.ai.model.doubao;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import java.util.List; import java.util.List;

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.doubao; package cn.hutool.v7.ai.model.doubao;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.BaseAIService; import cn.hutool.v7.ai.core.BaseAIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import org.dromara.hutool.http.client.Response; import cn.hutool.v7.http.client.Response;
import org.dromara.hutool.json.JSONUtil; import cn.hutool.v7.json.JSONUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@ -21,4 +21,4 @@
* @since 6.0.0 * @since 6.0.0
*/ */
package org.dromara.hutool.ai.model.doubao; package cn.hutool.v7.ai.model.doubao;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.grok; package cn.hutool.v7.ai.model.grok;
/** /**
* grok公共类 * grok公共类

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.grok; package cn.hutool.v7.ai.model.grok;
import org.dromara.hutool.ai.Models; import cn.hutool.v7.ai.Models;
import org.dromara.hutool.ai.core.BaseConfig; import cn.hutool.v7.ai.core.BaseConfig;
/** /**
* Grok配置类初始化API接口地址设置默认的模型 * Grok配置类初始化API接口地址设置默认的模型

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.grok; package cn.hutool.v7.ai.model.grok;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.AIServiceProvider; import cn.hutool.v7.ai.core.AIServiceProvider;
/** /**
* 创建Grok服务实现类 * 创建Grok服务实现类

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.grok; package cn.hutool.v7.ai.model.grok;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
import java.util.List; import java.util.List;

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.grok; package cn.hutool.v7.ai.model.grok;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.BaseAIService; import cn.hutool.v7.ai.core.BaseAIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.http.client.Response; import cn.hutool.v7.http.client.Response;
import org.dromara.hutool.json.JSONUtil; import cn.hutool.v7.json.JSONUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@ -21,4 +21,4 @@
* @since 6.0.0 * @since 6.0.0
*/ */
package org.dromara.hutool.ai.model.grok; package cn.hutool.v7.ai.model.grok;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.openai; package cn.hutool.v7.ai.model.openai;
/** /**
* openai公共类 * openai公共类

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.openai; package cn.hutool.v7.ai.model.openai;
import org.dromara.hutool.ai.Models; import cn.hutool.v7.ai.Models;
import org.dromara.hutool.ai.core.BaseConfig; import cn.hutool.v7.ai.core.BaseConfig;
/** /**
* openai配置类初始化API接口地址设置默认的模型 * openai配置类初始化API接口地址设置默认的模型

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.openai; package cn.hutool.v7.ai.model.openai;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.AIServiceProvider; import cn.hutool.v7.ai.core.AIServiceProvider;
/** /**
* 创建Openai服务实现类 * 创建Openai服务实现类

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.openai; package cn.hutool.v7.ai.model.openai;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import java.io.File; import java.io.File;
import java.io.InputStream; import java.io.InputStream;

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.openai; package cn.hutool.v7.ai.model.openai;
import org.dromara.hutool.ai.core.AIConfig; import cn.hutool.v7.ai.core.AIConfig;
import org.dromara.hutool.ai.core.BaseAIService; import cn.hutool.v7.ai.core.BaseAIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import org.dromara.hutool.http.client.Response; import cn.hutool.v7.http.client.Response;
import org.dromara.hutool.json.JSONUtil; import cn.hutool.v7.json.JSONUtil;
import java.io.File; import java.io.File;
import java.io.InputStream; import java.io.InputStream;

View File

@ -21,4 +21,4 @@
* @since 6.0.0 * @since 6.0.0
*/ */
package org.dromara.hutool.ai.model.openai; package cn.hutool.v7.ai.model.openai;

View File

@ -21,4 +21,4 @@
* @since 6.0.0 * @since 6.0.0
*/ */
package org.dromara.hutool.ai.model; package cn.hutool.v7.ai.model;

View File

@ -21,4 +21,4 @@
* @since 6.0.0 * @since 6.0.0
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;

View File

@ -0,0 +1,4 @@
cn.hutool.v7.ai.model.deepseek.DeepSeekConfig
cn.hutool.v7.ai.model.openai.OpenaiConfig
cn.hutool.v7.ai.model.doubao.DoubaoConfig
cn.hutool.v7.ai.model.grok.GrokConfig

View File

@ -0,0 +1,4 @@
cn.hutool.v7.ai.model.deepseek.DeepSeekProvider
cn.hutool.v7.ai.model.openai.OpenaiProvider
cn.hutool.v7.ai.model.doubao.DoubaoProvider
cn.hutool.v7.ai.model.grok.GrokProvider

View File

@ -1,4 +0,0 @@
org.dromara.hutool.ai.model.deepseek.DeepSeekConfig
org.dromara.hutool.ai.model.openai.OpenaiConfig
org.dromara.hutool.ai.model.doubao.DoubaoConfig
org.dromara.hutool.ai.model.grok.GrokConfig

View File

@ -1,4 +0,0 @@
org.dromara.hutool.ai.model.deepseek.DeepSeekProvider
org.dromara.hutool.ai.model.openai.OpenaiProvider
org.dromara.hutool.ai.model.doubao.DoubaoProvider
org.dromara.hutool.ai.model.grok.GrokProvider

View File

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;
import org.dromara.hutool.ai.core.AIConfigBuilder; import cn.hutool.v7.ai.core.AIConfigBuilder;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
import org.dromara.hutool.ai.model.deepseek.DeepSeekService; import cn.hutool.v7.ai.model.deepseek.DeepSeekService;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;

View File

@ -14,15 +14,15 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai; package cn.hutool.v7.ai;
import org.dromara.hutool.ai.core.AIConfigBuilder; import cn.hutool.v7.ai.core.AIConfigBuilder;
import org.dromara.hutool.ai.core.AIService; import cn.hutool.v7.ai.core.AIService;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.ai.model.deepseek.DeepSeekService; import cn.hutool.v7.ai.model.deepseek.DeepSeekService;
import org.dromara.hutool.ai.model.doubao.DoubaoService; import cn.hutool.v7.ai.model.doubao.DoubaoService;
import org.dromara.hutool.ai.model.grok.GrokService; import cn.hutool.v7.ai.model.grok.GrokService;
import org.dromara.hutool.ai.model.openai.OpenaiService; import cn.hutool.v7.ai.model.openai.OpenaiService;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -14,12 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.deepseek; package cn.hutool.v7.ai.model.deepseek;
import org.dromara.hutool.ai.AIServiceFactory; import cn.hutool.v7.ai.AIServiceFactory;
import org.dromara.hutool.ai.ModelName; import cn.hutool.v7.ai.ModelName;
import org.dromara.hutool.ai.core.AIConfigBuilder; import cn.hutool.v7.ai.core.AIConfigBuilder;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.doubao; package cn.hutool.v7.ai.model.doubao;
import org.dromara.hutool.ai.AIServiceFactory; import cn.hutool.v7.ai.AIServiceFactory;
import org.dromara.hutool.ai.ModelName; import cn.hutool.v7.ai.ModelName;
import org.dromara.hutool.ai.Models; import cn.hutool.v7.ai.Models;
import org.dromara.hutool.ai.core.AIConfigBuilder; import cn.hutool.v7.ai.core.AIConfigBuilder;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.swing.img.ImgUtil; import cn.hutool.v7.swing.img.ImgUtil;
import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.grok; package cn.hutool.v7.ai.model.grok;
import org.dromara.hutool.ai.AIServiceFactory; import cn.hutool.v7.ai.AIServiceFactory;
import org.dromara.hutool.ai.ModelName; import cn.hutool.v7.ai.ModelName;
import org.dromara.hutool.ai.Models; import cn.hutool.v7.ai.Models;
import org.dromara.hutool.ai.core.AIConfigBuilder; import cn.hutool.v7.ai.core.AIConfigBuilder;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.swing.img.ImgUtil; import cn.hutool.v7.swing.img.ImgUtil;
import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.ai.model.openai; package cn.hutool.v7.ai.model.openai;
import org.dromara.hutool.ai.AIServiceFactory; import cn.hutool.v7.ai.AIServiceFactory;
import org.dromara.hutool.ai.ModelName; import cn.hutool.v7.ai.ModelName;
import org.dromara.hutool.ai.Models; import cn.hutool.v7.ai.Models;
import org.dromara.hutool.ai.core.AIConfigBuilder; import cn.hutool.v7.ai.core.AIConfigBuilder;
import org.dromara.hutool.ai.core.Message; import cn.hutool.v7.ai.core.Message;
import org.dromara.hutool.core.io.file.FileUtil; import cn.hutool.v7.core.io.file.FileUtil;
import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View File

@ -23,9 +23,9 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<parent> <parent>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-parent</artifactId> <artifactId>hutool-parent</artifactId>
<version>6.0.0-M22</version> <version>7.0.0.M1</version>
</parent> </parent>
<artifactId>hutool-all</artifactId> <artifactId>hutool-all</artifactId>

View File

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool; package cn.hutool.v7;
import org.dromara.hutool.core.lang.ConsoleTable; import cn.hutool.v7.core.lang.ConsoleTable;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import java.util.Set; import java.util.Set;
@ -60,7 +60,7 @@ public class Hutool {
* @since 5.5.2 * @since 5.5.2
*/ */
public static Set<Class<?>> getAllUtils() { public static Set<Class<?>> getAllUtils() {
return ClassUtil.scanPackage("org.dromara.hutool", return ClassUtil.scanPackage("cn.hutool.v7",
(clazz) -> (!clazz.isInterface()) && StrUtil.endWith(clazz.getSimpleName(), "Util")); (clazz) -> (!clazz.isInterface()) && StrUtil.endWith(clazz.getSimpleName(), "Util"));
} }

View File

@ -23,4 +23,4 @@
* *
* @author Looly * @author Looly
*/ */
package org.dromara.hutool; package cn.hutool.v7;

View File

@ -23,9 +23,9 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<parent> <parent>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-parent</artifactId> <artifactId>hutool-parent</artifactId>
<version>6.0.0-M22</version> <version>7.0.0.M1</version>
</parent> </parent>
<artifactId>hutool-bom</artifactId> <artifactId>hutool-bom</artifactId>

View File

@ -23,9 +23,9 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<parent> <parent>
<groupId>org.dromara.hutool</groupId> <groupId>cn.hutool.v7</groupId>
<artifactId>hutool-parent</artifactId> <artifactId>hutool-parent</artifactId>
<version>6.0.0-M22</version> <version>7.0.0.M1</version>
</parent> </parent>
<artifactId>hutool-core</artifactId> <artifactId>hutool-core</artifactId>
@ -33,7 +33,7 @@
<description>Hutool核心包括集合、字符串、Bean等工具</description> <description>Hutool核心包括集合、字符串、Bean等工具</description>
<properties> <properties>
<Automatic-Module-Name>org.dromara.hutool.core</Automatic-Module-Name> <Automatic-Module-Name>cn.hutool.v7.core</Automatic-Module-Name>
</properties> </properties>
</project> </project>

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import org.dromara.hutool.core.annotation.elements.HierarchicalAnnotatedElements; import cn.hutool.v7.core.annotation.elements.HierarchicalAnnotatedElements;
import org.dromara.hutool.core.annotation.elements.MetaAnnotatedElement; import cn.hutool.v7.core.annotation.elements.MetaAnnotatedElement;
import org.dromara.hutool.core.annotation.elements.RepeatableMetaAnnotatedElement; import cn.hutool.v7.core.annotation.elements.RepeatableMetaAnnotatedElement;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.map.reference.WeakConcurrentMap; import cn.hutool.v7.core.map.reference.WeakConcurrentMap;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.annotation.Inherited; import java.lang.annotation.Inherited;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View File

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import org.dromara.hutool.core.map.concurrent.SafeConcurrentHashMap; import cn.hutool.v7.core.map.concurrent.SafeConcurrentHashMap;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationHandler;

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import java.io.Serializable; import java.io.Serializable;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;

View File

@ -14,21 +14,21 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import org.dromara.hutool.core.annotation.elements.CombinationAnnotatedElement; import cn.hutool.v7.core.annotation.elements.CombinationAnnotatedElement;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.classloader.ClassLoaderUtil; import cn.hutool.v7.core.classloader.ClassLoaderUtil;
import org.dromara.hutool.core.exception.HutoolException; import cn.hutool.v7.core.exception.HutoolException;
import org.dromara.hutool.core.func.LambdaInfo; import cn.hutool.v7.core.func.LambdaInfo;
import org.dromara.hutool.core.func.LambdaUtil; import cn.hutool.v7.core.func.LambdaUtil;
import org.dromara.hutool.core.func.SerFunction; import cn.hutool.v7.core.func.SerFunction;
import org.dromara.hutool.core.map.reference.WeakConcurrentMap; import cn.hutool.v7.core.map.reference.WeakConcurrentMap;
import org.dromara.hutool.core.reflect.FieldUtil; import cn.hutool.v7.core.reflect.FieldUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
import java.lang.annotation.*; import java.lang.annotation.*;
import java.lang.reflect.*; import java.lang.reflect.*;

View File

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.collection.CollUtil; import cn.hutool.v7.core.collection.CollUtil;
import org.dromara.hutool.core.map.reference.WeakConcurrentMap; import cn.hutool.v7.core.map.reference.WeakConcurrentMap;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.annotation.Repeatable; import java.lang.annotation.Repeatable;

View File

@ -14,16 +14,16 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import org.dromara.hutool.core.annotation.elements.MetaAnnotatedElement; import cn.hutool.v7.core.annotation.elements.MetaAnnotatedElement;
import org.dromara.hutool.core.collection.CollUtil; import cn.hutool.v7.core.collection.CollUtil;
import org.dromara.hutool.core.lang.Assert; import cn.hutool.v7.core.lang.Assert;
import org.dromara.hutool.core.map.multi.Graph; import cn.hutool.v7.core.map.multi.Graph;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;

View File

@ -14,12 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation.elements; package cn.hutool.v7.core.annotation.elements;
import org.dromara.hutool.core.annotation.AnnotationUtil; import cn.hutool.v7.core.annotation.AnnotationUtil;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.collection.set.SetUtil; import cn.hutool.v7.core.collection.set.SetUtil;
import org.dromara.hutool.core.map.TableMap; import cn.hutool.v7.core.map.TableMap;
import java.io.Serializable; import java.io.Serializable;
import java.lang.annotation.*; import java.lang.annotation.*;

View File

@ -14,15 +14,15 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation.elements; package cn.hutool.v7.core.annotation.elements;
import org.dromara.hutool.core.annotation.AnnotationUtil; import cn.hutool.v7.core.annotation.AnnotationUtil;
import org.dromara.hutool.core.collection.CollUtil; import cn.hutool.v7.core.collection.CollUtil;
import org.dromara.hutool.core.collection.set.SetUtil; import cn.hutool.v7.core.collection.set.SetUtil;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement; import java.lang.reflect.AnnotatedElement;

View File

@ -14,15 +14,15 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation.elements; package cn.hutool.v7.core.annotation.elements;
import org.dromara.hutool.core.annotation.AnnotationMapping; import cn.hutool.v7.core.annotation.AnnotationMapping;
import org.dromara.hutool.core.annotation.AnnotationUtil; import cn.hutool.v7.core.annotation.AnnotationUtil;
import org.dromara.hutool.core.annotation.ResolvedAnnotationMapping; import cn.hutool.v7.core.annotation.ResolvedAnnotationMapping;
import org.dromara.hutool.core.stream.EasyStream; import cn.hutool.v7.core.stream.EasyStream;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.annotation.Inherited; import java.lang.annotation.Inherited;

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.annotation.elements; package cn.hutool.v7.core.annotation.elements;
import org.dromara.hutool.core.annotation.AnnotationMapping; import cn.hutool.v7.core.annotation.AnnotationMapping;
import org.dromara.hutool.core.annotation.AnnotationUtil; import cn.hutool.v7.core.annotation.AnnotationUtil;
import org.dromara.hutool.core.annotation.RepeatableAnnotationCollector; import cn.hutool.v7.core.annotation.RepeatableAnnotationCollector;
import org.dromara.hutool.core.collection.CollUtil; import cn.hutool.v7.core.collection.CollUtil;
import org.dromara.hutool.core.text.CharSequenceUtil; import cn.hutool.v7.core.text.CharSequenceUtil;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement; import java.lang.reflect.AnnotatedElement;

View File

@ -19,4 +19,4 @@
* *
* @author Looly, huangchengxing * @author Looly, huangchengxing
*/ */
package org.dromara.hutool.core.annotation.elements; package cn.hutool.v7.core.annotation.elements;

View File

@ -26,4 +26,4 @@
* @author Looly * @author Looly
* *
*/ */
package org.dromara.hutool.core.annotation; package cn.hutool.v7.core.annotation;

View File

@ -14,21 +14,21 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.array; package cn.hutool.v7.core.array;
import org.dromara.hutool.core.collection.ListUtil; import cn.hutool.v7.core.collection.ListUtil;
import org.dromara.hutool.core.collection.set.SetUtil; import cn.hutool.v7.core.collection.set.SetUtil;
import org.dromara.hutool.core.collection.set.UniqueKeySet; import cn.hutool.v7.core.collection.set.UniqueKeySet;
import org.dromara.hutool.core.comparator.CompareUtil; import cn.hutool.v7.core.comparator.CompareUtil;
import org.dromara.hutool.core.convert.ConvertUtil; import cn.hutool.v7.core.convert.ConvertUtil;
import org.dromara.hutool.core.exception.ExceptionUtil; import cn.hutool.v7.core.exception.ExceptionUtil;
import org.dromara.hutool.core.exception.HutoolException; import cn.hutool.v7.core.exception.HutoolException;
import org.dromara.hutool.core.lang.Assert; import cn.hutool.v7.core.lang.Assert;
import org.dromara.hutool.core.map.MapUtil; import cn.hutool.v7.core.map.MapUtil;
import org.dromara.hutool.core.text.StrJoiner; import cn.hutool.v7.core.text.StrJoiner;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
import org.dromara.hutool.core.util.RandomUtil; import cn.hutool.v7.core.util.RandomUtil;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.util.*; import java.util.*;

View File

@ -14,15 +14,15 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.array; package cn.hutool.v7.core.array;
import org.dromara.hutool.core.collection.iter.ArrayIter; import cn.hutool.v7.core.collection.iter.ArrayIter;
import org.dromara.hutool.core.convert.ConvertUtil; import cn.hutool.v7.core.convert.ConvertUtil;
import org.dromara.hutool.core.lang.wrapper.Wrapper; import cn.hutool.v7.core.lang.wrapper.Wrapper;
import org.dromara.hutool.core.lang.Assert; import cn.hutool.v7.core.lang.Assert;
import org.dromara.hutool.core.lang.Validator; import cn.hutool.v7.core.lang.Validator;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.util.Arrays; import java.util.Arrays;

View File

@ -14,12 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.array; package cn.hutool.v7.core.array;
import org.dromara.hutool.core.lang.Assert; import cn.hutool.v7.core.lang.Assert;
import org.dromara.hutool.core.math.NumberUtil; import cn.hutool.v7.core.math.NumberUtil;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
import org.dromara.hutool.core.util.RandomUtil; import cn.hutool.v7.core.util.RandomUtil;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.util.Arrays; import java.util.Arrays;

View File

@ -19,4 +19,4 @@
* *
* @author Looly * @author Looly
*/ */
package org.dromara.hutool.core.array; package cn.hutool.v7.core.array;

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.reflect.Invoker; import cn.hutool.v7.core.reflect.Invoker;
import java.io.Serializable; import java.io.Serializable;
import java.util.Collection; import java.util.Collection;

View File

@ -14,12 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.map.reference.WeakConcurrentMap; import cn.hutool.v7.core.map.reference.WeakConcurrentMap;
import org.dromara.hutool.core.reflect.FieldUtil; import cn.hutool.v7.core.reflect.FieldUtil;
import org.dromara.hutool.core.reflect.JdkProxyUtil; import cn.hutool.v7.core.reflect.JdkProxyUtil;
/** /**
* Bean描述信息工厂类<br> * Bean描述信息工厂类<br>

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.exception.HutoolException; import cn.hutool.v7.core.exception.HutoolException;
/** /**
* Bean异常 * Bean异常

View File

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.func.SerSupplier; import cn.hutool.v7.core.func.SerSupplier;
import org.dromara.hutool.core.map.reference.ReferenceConcurrentMap; import cn.hutool.v7.core.map.reference.ReferenceConcurrentMap;
import org.dromara.hutool.core.map.reference.WeakConcurrentMap; import cn.hutool.v7.core.map.reference.WeakConcurrentMap;
import java.beans.PropertyDescriptor; import java.beans.PropertyDescriptor;
import java.util.Map; import java.util.Map;

View File

@ -14,30 +14,30 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.annotation.AnnotationUtil; import cn.hutool.v7.core.annotation.AnnotationUtil;
import org.dromara.hutool.core.annotation.ReadableBean; import cn.hutool.v7.core.annotation.ReadableBean;
import org.dromara.hutool.core.annotation.WritableBean; import cn.hutool.v7.core.annotation.WritableBean;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.bean.copier.BeanCopier; import cn.hutool.v7.core.bean.copier.BeanCopier;
import org.dromara.hutool.core.bean.copier.CopyOptions; import cn.hutool.v7.core.bean.copier.CopyOptions;
import org.dromara.hutool.core.bean.copier.ValueProvider; import cn.hutool.v7.core.bean.copier.ValueProvider;
import org.dromara.hutool.core.bean.path.BeanPath; import cn.hutool.v7.core.bean.path.BeanPath;
import org.dromara.hutool.core.collection.set.SetUtil; import cn.hutool.v7.core.collection.set.SetUtil;
import org.dromara.hutool.core.convert.ConvertUtil; import cn.hutool.v7.core.convert.ConvertUtil;
import org.dromara.hutool.core.convert.impl.RecordConverter; import cn.hutool.v7.core.convert.impl.RecordConverter;
import org.dromara.hutool.core.lang.mutable.MutableEntry; import cn.hutool.v7.core.lang.mutable.MutableEntry;
import org.dromara.hutool.core.map.BeanMap; import cn.hutool.v7.core.map.BeanMap;
import org.dromara.hutool.core.map.CaseInsensitiveMap; import cn.hutool.v7.core.map.CaseInsensitiveMap;
import org.dromara.hutool.core.map.Dict; import cn.hutool.v7.core.map.Dict;
import org.dromara.hutool.core.map.MapUtil; import cn.hutool.v7.core.map.MapUtil;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.reflect.ConstructorUtil; import cn.hutool.v7.core.reflect.ConstructorUtil;
import org.dromara.hutool.core.reflect.FieldUtil; import cn.hutool.v7.core.reflect.FieldUtil;
import org.dromara.hutool.core.reflect.ModifierUtil; import cn.hutool.v7.core.reflect.ModifierUtil;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
import java.beans.*; import java.beans.*;
import java.lang.reflect.Field; import java.lang.reflect.Field;
@ -563,8 +563,8 @@ public class BeanUtil {
/** /**
* 给定的Bean的类名是否匹配指定类名字符串<br> * 给定的Bean的类名是否匹配指定类名字符串<br>
* 如果isSimple为{@code true}则只匹配类名而忽略包名例如org.dromara.hutool.TestEntity只匹配TestEntity<br> * 如果isSimple为{@code true}则只匹配类名而忽略包名例如cn.hutool.v7.TestEntity只匹配TestEntity<br>
* 如果isSimple为{@code false}则匹配包括包名的全类名例如org.dromara.hutool.TestEntity匹配org.dromara.hutool.TestEntity * 如果isSimple为{@code false}则匹配包括包名的全类名例如cn.hutool.v7.TestEntity匹配cn.hutool.v7.TestEntity
* *
* @param bean Bean * @param bean Bean
* @param beanClassName Bean的类名 * @param beanClassName Bean的类名

View File

@ -14,17 +14,17 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.array.ArrayUtil; import cn.hutool.v7.core.array.ArrayUtil;
import org.dromara.hutool.core.collection.CollUtil; import cn.hutool.v7.core.collection.CollUtil;
import org.dromara.hutool.core.collection.ListUtil; import cn.hutool.v7.core.collection.ListUtil;
import org.dromara.hutool.core.convert.ConvertUtil; import cn.hutool.v7.core.convert.ConvertUtil;
import org.dromara.hutool.core.exception.CloneException; import cn.hutool.v7.core.exception.CloneException;
import org.dromara.hutool.core.lang.Assert; import cn.hutool.v7.core.lang.Assert;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.reflect.ConstructorUtil; import cn.hutool.v7.core.reflect.ConstructorUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import java.io.Serializable; import java.io.Serializable;
import java.util.Collection; import java.util.Collection;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
/** /**
* 为了解决反射过程中,需要传递null参数,但是会丢失参数类型而设立的包装类 * 为了解决反射过程中,需要传递null参数,但是会丢失参数类型而设立的包装类

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.annotation.AnnotationUtil; import cn.hutool.v7.core.annotation.AnnotationUtil;
import org.dromara.hutool.core.annotation.PropIgnore; import cn.hutool.v7.core.annotation.PropIgnore;
import org.dromara.hutool.core.convert.ConvertUtil; import cn.hutool.v7.core.convert.ConvertUtil;
import org.dromara.hutool.core.reflect.*; import cn.hutool.v7.core.reflect.*;
import org.dromara.hutool.core.reflect.method.MethodInvoker; import cn.hutool.v7.core.reflect.method.MethodInvoker;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View File

@ -14,12 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.bean.path.AbstractBeanDesc; import cn.hutool.v7.core.bean.path.AbstractBeanDesc;
import org.dromara.hutool.core.reflect.FieldUtil; import cn.hutool.v7.core.reflect.FieldUtil;
import org.dromara.hutool.core.reflect.ModifierUtil; import cn.hutool.v7.core.reflect.ModifierUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.bean.copier.ValueProvider; import cn.hutool.v7.core.bean.copier.ValueProvider;
import org.dromara.hutool.core.classloader.ClassLoaderUtil; import cn.hutool.v7.core.classloader.ClassLoaderUtil;
import org.dromara.hutool.core.reflect.ConstructorUtil; import cn.hutool.v7.core.reflect.ConstructorUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.util.JdkUtil; import cn.hutool.v7.core.util.JdkUtil;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.lang.reflect.Type; import java.lang.reflect.Type;

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.bean.path.AbstractBeanDesc; import cn.hutool.v7.core.bean.path.AbstractBeanDesc;
import org.dromara.hutool.core.reflect.method.MethodInvoker; import cn.hutool.v7.core.reflect.method.MethodInvoker;
import org.dromara.hutool.core.reflect.method.MethodNameUtil; import cn.hutool.v7.core.reflect.method.MethodNameUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.util.BooleanUtil; import cn.hutool.v7.core.util.BooleanUtil;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.Map; import java.util.Map;

View File

@ -14,16 +14,16 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean; package cn.hutool.v7.core.bean;
import org.dromara.hutool.core.bean.path.AbstractBeanDesc; import cn.hutool.v7.core.bean.path.AbstractBeanDesc;
import org.dromara.hutool.core.reflect.ClassUtil; import cn.hutool.v7.core.reflect.ClassUtil;
import org.dromara.hutool.core.reflect.FieldUtil; import cn.hutool.v7.core.reflect.FieldUtil;
import org.dromara.hutool.core.reflect.ModifierUtil; import cn.hutool.v7.core.reflect.ModifierUtil;
import org.dromara.hutool.core.reflect.method.MethodNameUtil; import cn.hutool.v7.core.reflect.method.MethodNameUtil;
import org.dromara.hutool.core.reflect.method.MethodUtil; import cn.hutool.v7.core.reflect.method.MethodUtil;
import org.dromara.hutool.core.text.StrUtil; import cn.hutool.v7.core.text.StrUtil;
import org.dromara.hutool.core.util.BooleanUtil; import cn.hutool.v7.core.util.BooleanUtil;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean.copier; package cn.hutool.v7.core.bean.copier;
import org.dromara.hutool.core.bean.BeanDesc; import cn.hutool.v7.core.bean.BeanDesc;
import org.dromara.hutool.core.bean.BeanUtil; import cn.hutool.v7.core.bean.BeanUtil;
import org.dromara.hutool.core.lang.copier.Copier; import cn.hutool.v7.core.lang.copier.Copier;
import org.dromara.hutool.core.reflect.ConstructorUtil; import cn.hutool.v7.core.reflect.ConstructorUtil;
import org.dromara.hutool.core.util.ObjUtil; import cn.hutool.v7.core.util.ObjUtil;
/** /**
* 抽象的对象拷贝封装提供来源对象目标对象持有 * 抽象的对象拷贝封装提供来源对象目标对象持有

View File

@ -14,10 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.dromara.hutool.core.bean.copier; package cn.hutool.v7.core.bean.copier;
import org.dromara.hutool.core.lang.Assert; import cn.hutool.v7.core.lang.Assert;
import org.dromara.hutool.core.lang.copier.Copier; import cn.hutool.v7.core.lang.copier.Copier;
import java.io.Serializable; import java.io.Serializable;
import java.lang.reflect.Type; import java.lang.reflect.Type;

Some files were not shown because too many files have changed in this diff Show More