Skip to content

Commit aba18e0

Browse files
committed
升级 APIJSON, apijson-framework, 自身 8.2.0,apijson-fastjson2, apijson-jackson 1.2.0
1 parent 76ac99d commit aba18e0

7 files changed

Lines changed: 21 additions & 11 deletions

File tree

Binary file not shown.
Binary file not shown.

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/libs/apijson-fastjson2-1.1.8.jar renamed to APIJSON-Java-Server/APIJSONBoot-MultiDataSource/libs/apijson-fastjson2-1.2.0.jar

36.9 KB
Binary file not shown.

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/libs/apijson-framework-8.1.8.jar renamed to APIJSON-Java-Server/APIJSONBoot-MultiDataSource/libs/apijson-framework-8.2.0.jar

104 KB
Binary file not shown.

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/pom.xml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.boot</groupId>
77
<artifactId>apijson-boot-multi-datasource</artifactId>
8-
<version>8.1.8</version>
8+
<version>8.2.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONBoot-MultiDataSource</name>
@@ -59,23 +59,23 @@
5959
<dependency>
6060
<groupId>com.github.Tencent</groupId>
6161
<artifactId>APIJSON</artifactId>
62-
<version>8.1.8</version>
62+
<version>8.2.0</version>
6363
</dependency>
6464
<dependency>
6565
<groupId>com.github.APIJSON</groupId>
6666
<artifactId>apijson-framework</artifactId>
67-
<version>8.1.8</version>
67+
<version>8.2.0</version>
6868
</dependency>
6969
<!-- fastjson2, jackson, gson 等 JSON 库插件选其中一个即可 <<<<<<<<<<<<<<< -->
7070
<dependency>
7171
<groupId>com.github.APIJSON</groupId>
7272
<artifactId>apijson-fastjson2</artifactId>
73-
<version>1.1.8</version>
73+
<version>1.2.0</version>
7474
</dependency>
7575
<!-- <dependency>-->
7676
<!-- <groupId>com.github.APIJSON</groupId>-->
7777
<!-- <artifactId>apijson-jackson</artifactId>-->
78-
<!-- <version>1.1.8</version>-->
78+
<!-- <version>1.2.0</version>-->
7979
<!-- </dependency>-->
8080
<!-- fastjson2, jackson, gson 等 JSON 库插件选其中一个即可 >>>>>>>>>>>>>>> -->
8181

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public DemoParser setNeedVerify(boolean needVerify) {
6666
// return true;
6767
// }
6868

69-
private int maxQueryCount = 2000;
69+
private int maxQueryCount = 100;
7070
// 可重写来设置最大查询数量
7171
@Override
7272
public int getMaxQueryCount() {
@@ -75,7 +75,7 @@ public int getMaxQueryCount() {
7575

7676
@Override
7777
public int getMaxUpdateCount() {
78-
return 2000;
78+
return 10;
7979
}
8080

8181
@Override

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public String getUserIdKey(String database, String datasource, String namespace,
179179
@Override
180180
public String gainDBVersion() {
181181
if (isMySQL()) {
182-
// return "5.7.22"; //
182+
// return "5.7.22"; //TODO 改成你自己的 MySQL 或 PostgreSQL 数据库版本号 //MYSQL 8 和 7 使用的 JDBC 配置不一样
183183
return "8.0.11"; //TODO 改成你自己的 MySQL 或 PostgreSQL 数据库版本号 //MYSQL 8 和 7 使用的 JDBC 配置不一样
184184
}
185185
if (isPostgreSQL()) {
@@ -308,7 +308,10 @@ public String gainDBUri() {
308308
// return "jdbc:opengauss://127.0.0.1:5432/postgres?currentSchema=" + DEFAULT_SCHEMA; //TODO 改成你自己的
309309
//}
310310
//if (isDoris()) {
311-
// return "jdbc:mysql://localhost:9030"; //TODO 改成你自己的,TiDB 可以当成 MySQL 使用,默认端口为 4000
311+
// return "jdbc:mysql://localhost:9030"; //TODO 改成你自己的,Doris 可以当成 MySQL 使用,默认端口为 9030
312+
//}
313+
//if (isStarRocks()) {
314+
// return "jdbc:mysql://localhost:9030"; //TODO 改成你自己的,StarRocks 可以当成 Doris/MySQL 使用,默认端口为 9030
312315
//}
313316
//if (isDatabend()) {
314317
// return "jdbc:databend://localhost:8000?disable_session_token=true"; //TODO 改成你自己的
@@ -329,7 +332,8 @@ public String gainDBAccount() {
329332
}
330333

331334
if (isMySQL()) {
332-
return "root"; // ""apijson"; //TODO 改成你自己的
335+
return "root"; //TODO 改成你自己的
336+
// return "apijson"; //TODO 改成你自己的
333337
}
334338
if (isPostgreSQL()) {
335339
return "postgres"; //TODO 改成你自己的
@@ -393,6 +397,9 @@ public String gainDBAccount() {
393397
//if (isDoris()) {
394398
// return "root";
395399
//}
400+
//if (isStarRocks()) {
401+
// return "root";
402+
//}
396403
//if (isDatabend()) {
397404
// return "root"; //TODO 改成你自己的
398405
//}
@@ -473,7 +480,10 @@ public String gainDBPassword() {
473480
// return "openGauss@123"; //TODO 改成你自己的
474481
//}
475482
//if (isDoris()) {
476-
// return "apijson";
483+
// return "";
484+
//}
485+
//if (isStarRocks()) {
486+
// return "";
477487
//}
478488
//if (isDatabend()) {
479489
// return null; //TODO 改成你自己的

0 commit comments

Comments
 (0)