Skip to content

Commit b578e47

Browse files
committed
Java:ClickHouse Demo 升级 JDK 17,APIJSON 7.1.0, apijson-framework 及自身 7.1.5
1 parent d06d793 commit b578e47

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

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

+12-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
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-ClickHouse</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>
20+
<version>3.2.5</version>
1721
</properties>
1822

1923
<dependencies>
@@ -45,12 +49,12 @@
4549
<dependency>
4650
<groupId>com.github.Tencent</groupId>
4751
<artifactId>APIJSON</artifactId>
48-
<version>7.0.3</version>
52+
<version>7.1.0</version>
4953
</dependency>
5054
<dependency>
5155
<groupId>com.github.APIJSON</groupId>
5256
<artifactId>apijson-framework</artifactId>
53-
<version>7.0.3</version>
57+
<version>7.1.5</version>
5458
</dependency>
5559

5660
<!-- Oracle, SQLServer 等其它数据库的 JDBC 驱动,可以在这里加上 Maven 依赖或 libs 目录放 Jar 包并依赖 -->
@@ -69,6 +73,7 @@
6973
<plugin>
7074
<groupId>org.springframework.boot</groupId>
7175
<artifactId>spring-boot-maven-plugin</artifactId>
76+
<version>3.2.5</version>
7277
<executions>
7378
<execution>
7479
<goals>
@@ -80,9 +85,10 @@
8085
<plugin>
8186
<groupId>org.apache.maven.plugins</groupId>
8287
<artifactId>maven-compiler-plugin</artifactId>
88+
<version>3.8.1</version>
8389
<configuration>
84-
<source>1.8</source>
85-
<target>1.8</target>
90+
<source>17</source>
91+
<target>17</target>
8692
</configuration>
8793
</plugin>
8894
</plugins>

APIJSON-Java-Server/APIJSONDemo-ClickHouse/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-ClickHouse/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-ClickHouse/src/main/java/apijson/demo/DemoSQLConfig.java

+2-2
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 配置
@@ -62,7 +62,7 @@ public String getDBAccount() {
6262
@JSONField(serialize = false) // 不在日志打印 账号/密码 等敏感信息
6363
@Override
6464
public String getDBPassword() {
65-
return "123456"; // TODO 改成你自己的
65+
return "apijson"; // TODO 改成你自己的
6666
}
6767

6868
}

0 commit comments

Comments
 (0)