Skip to content

Commit 0fc9421

Browse files
committed
Java:MultiDataSource 完善 CVAuto-零代码零标注 CV AI 自动化测试工具 等相关注释:https://github.com/TommyLemon/CVAuto
1 parent abc0b61 commit 0fc9421

3 files changed

Lines changed: 22 additions & 5 deletions

File tree

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/DatasetUtil.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
package apijson;
1616

1717
import com.alibaba.fastjson2.annotation.JSONField;
18-
import com.google.gson.Gson;
19-
import com.google.gson.GsonBuilder;
2018
import com.google.gson.annotations.Expose;
2119

2220
import java.io.*;
@@ -29,10 +27,12 @@
2927
import java.util.*;
3028
import java.util.Base64;
3129

32-
// 添加 JSONObject 支持
3330
import com.alibaba.fastjson2.JSONObject;
3431
import com.alibaba.fastjson2.JSONArray;
3532

33+
/**Computer Vision AI 数据集工具类,详情见:https://github.com/TommyLemon/CVAuto
34+
* @author Lemon
35+
*/
3636
public class DatasetUtil {
3737

3838
public static void main(String[] args) {

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/ExcelUtil.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353

5454
import java.util.Map;
5555

56-
/**
57-
* CV AI 图片预测指标报告生成器 (功能增强最终版)
56+
/** CV AI 图片预测指标报告生成器 (功能增强最终版),详情见:https://github.com/TommyLemon/CVAuto
5857
* - 新增 "核对" 列
5958
* - 新增 最小、平均、中位、最大 统计
6059
* - 总览区域与详情数据全公式联动
60+
* @author Lemon
6161
*/
6262
public class ExcelUtil {
6363

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/boot/RepeatHeaderFilter.java‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*Copyright ©2025 APIJSON(https://github.com/APIJSON)
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.*/
14+
115
package apijson.boot;
216

317
import jakarta.servlet.FilterChain;
@@ -10,6 +24,9 @@
1024

1125
import java.io.IOException;
1226

27+
/**请求头去重,解决 header 和 x-header 都传时请求解析报错
28+
* @author Lemon
29+
*/
1330
@Component
1431
public class RepeatHeaderFilter extends OncePerRequestFilter {
1532

0 commit comments

Comments
 (0)