Skip to content

Commit 382f53c

Browse files
committed
Java:Elasticsearch Demo 升级 JDK 17,APIJSON 7.1.0, apijson-framework 及自身 7.1.5
1 parent 519bd5a commit 382f53c

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

APIJSON-Java-Server/APIJSONDemo-Elasticsearch/pom.xml

+11-6
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,31 @@
55

66
<groupId>apijson.demo</groupId>
77
<artifactId>apijson-demo</artifactId>
8-
<version>7.0.3</version>
8+
<version>7.1.5</version>
99

1010
<name>APIJSONDemo-Elasticsearch</name>
1111
<description>Demo project for testing APIJSON server based on SpringBoot</description>
1212

1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
16-
<java.version>1.8</java.version>
16+
<java.version>17</java.version>
17+
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
18+
<maven.compiler.source>17</maven.compiler.source>
19+
<maven.compiler.target>17</maven.compiler.target>
1720
</properties>
1821

1922
<dependencies>
2023
<!-- 需要的 APIJSON 相关依赖 -->
2124
<dependency>
2225
<groupId>com.github.Tencent</groupId>
2326
<artifactId>APIJSON</artifactId>
24-
<version>7.0.3</version>
27+
<version>7.1.0</version>
2528
</dependency>
2629
<dependency>
2730
<groupId>com.github.APIJSON</groupId>
2831
<artifactId>apijson-framework</artifactId>
29-
<version>7.0.3</version>
32+
<version>7.1.5</version>
3033
</dependency>
3134

3235
<!-- 需要用的数据库 JDBC 驱动 -->
@@ -52,6 +55,7 @@
5255
<plugin>
5356
<groupId>org.springframework.boot</groupId>
5457
<artifactId>spring-boot-maven-plugin</artifactId>
58+
<version>2.5.13</version>
5559
<executions>
5660
<execution>
5761
<goals>
@@ -63,9 +67,10 @@
6367
<plugin>
6468
<groupId>org.apache.maven.plugins</groupId>
6569
<artifactId>maven-compiler-plugin</artifactId>
70+
<version>3.8.1</version>
6671
<configuration>
67-
<source>1.8</source>
68-
<target>1.8</target>
72+
<source>17</source>
73+
<target>17</target>
6974
</configuration>
7075
</plugin>
7176
</plugins>

APIJSON-Java-Server/APIJSONDemo-Elasticsearch/src/main/java/apijson/demo/DemoApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
2727

2828
import apijson.Log;
29-
import apijson.framework.APIJSONApplication;
30-
import apijson.framework.APIJSONCreator;
29+
import apijson.framework.javax.APIJSONApplication;
30+
import apijson.framework.javax.APIJSONCreator;
3131
import apijson.orm.SQLConfig;
3232

3333

APIJSON-Java-Server/APIJSONDemo-Elasticsearch/src/main/java/apijson/demo/DemoController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
import apijson.RequestMethod;
3131
import apijson.StringUtil;
32-
import apijson.framework.APIJSONController;
32+
import apijson.framework.javax.APIJSONController;
3333
import apijson.orm.Parser;
3434

3535

APIJSON-Java-Server/APIJSONDemo-Elasticsearch/src/main/java/apijson/demo/DemoSQLConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import com.alibaba.fastjson.annotation.JSONField;
1818

19-
import apijson.framework.APIJSONSQLConfig;
19+
import apijson.framework.javax.APIJSONSQLConfig;
2020

2121

2222
/**SQL 配置

0 commit comments

Comments
 (0)