Skip to content

Commit e518a4d

Browse files
committed
Java:APIJSONDemo 升级 SpringBoot 至最新 release 版 2.4.2
1 parent 18ac4c2 commit e518a4d

File tree

1 file changed

+29
-47
lines changed
  • APIJSON-Java-Server/APIJSONDemo

1 file changed

+29
-47
lines changed
Lines changed: 29 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>apijson.demo</groupId>
@@ -9,49 +9,35 @@
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONDemo</name>
12-
<description>Demo project for Testing APIJSON Server based on SpringBoot</description>
13-
14-
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.4.1.RELEASE</version> <!--改成 2.1.9 直接报错,找不到 mysql-connector-java 等 3 个驱动包 <version>2.1.9.RELEASE</version> -->
18-
<relativePath /> <!-- lookup parent from repository -->
19-
</parent>
12+
<description>Demo project for Testing APIJSON Server based on
13+
SpringBoot
14+
</description>
2015

2116
<properties>
2217
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18+
<project.reporting.outputEncoding>UTF-8
19+
</project.reporting.outputEncoding>
2420
<java.version>1.8</java.version>
2521
</properties>
2622

2723
<dependencies>
28-
<!-- APIJSONORM 需要用的 JSON 封装/解析库,1.2.24 以上 -->
2924
<dependency>
30-
<groupId>com.alibaba</groupId>
31-
<artifactId>fastjson</artifactId>
32-
<version>1.2.74</version>
25+
<groupId>com.qcloud</groupId>
26+
<artifactId>qcloud-java-sdk</artifactId>
27+
<version>2.0.1</version>
3328
</dependency>
34-
35-
<!-- APIJSONBoot 需要用的 Spring 框架,1.4.1 以上 -->
3629
<dependency>
37-
<groupId>org.springframework.boot</groupId>
38-
<artifactId>spring-boot-starter</artifactId>
39-
</dependency>
40-
<dependency>
41-
<groupId>org.springframework.boot</groupId>
42-
<artifactId>spring-boot-starter-test</artifactId>
43-
<scope>test</scope>
30+
<groupId>com.tencentcloudapi</groupId>
31+
<artifactId>scf-java-events</artifactId>
32+
<version>0.0.2</version>
4433
</dependency>
34+
<!-- APIJSONORM 需要用的 JSON 封装/解析库,1.2.24 以上 -->
35+
36+
<!-- APIJSONBoot 需要用的 Spring 框架,1.4.1 以上 -->
4537
<dependency>
4638
<groupId>org.springframework.boot</groupId>
4739
<artifactId>spring-boot-starter-web</artifactId>
48-
</dependency>
49-
50-
<!-- APIJSONBoot 需要用的数据库 JDBC 驱动 -->
51-
<dependency>
52-
<groupId>mysql</groupId>
53-
<artifactId>mysql-connector-java</artifactId>
54-
<version>8.0.16</version>
40+
<version>2.4.2</version>
5541
</dependency>
5642
<!-- 没找到合适且稳定的 Oracle 的 JDBC Maven 依赖,已在 libs 目录放了对应的 jar 包来替代 -->
5743

@@ -68,6 +54,17 @@
6854
<plugin>
6955
<groupId>org.springframework.boot</groupId>
7056
<artifactId>spring-boot-maven-plugin</artifactId>
57+
<configuration>
58+
<fork>true</fork>
59+
<mainClass>apijson.demo.DemoApplication</mainClass>
60+
</configuration>
61+
<executions>
62+
<execution>
63+
<goals>
64+
<goal>repackage</goal>
65+
</goals>
66+
</execution>
67+
</executions>
7168
</plugin>
7269
<plugin>
7370
<groupId>org.apache.maven.plugins</groupId>
@@ -80,37 +77,22 @@
8077
</plugins>
8178
</build>
8279

83-
<!-- Allow access to Spring milestones and snapshots -->
84-
<!-- (you don't need this if you are using anything after 0.5.0.RELEASE) -->
8580
<repositories>
8681
<repository>
8782
<id>spring-snapshots</id>
88-
<url>http://repo.spring.io/snapshot</url>
83+
<url>https://repo.spring.io/snapshot</url>
8984
<snapshots>
9085
<enabled>true</enabled>
9186
</snapshots>
9287
</repository>
9388
<repository>
9489
<id>spring-milestones</id>
95-
<url>http://repo.spring.io/milestone</url>
96-
<snapshots>
97-
<enabled>true</enabled>
98-
</snapshots>
90+
<url>https://repo.spring.io/milestone</url>
9991
</repository>
10092
<repository>
10193
<id>jitpack.io</id>
10294
<url>https://jitpack.io</url>
10395
</repository>
10496
</repositories>
105-
<pluginRepositories>
106-
<pluginRepository>
107-
<id>spring-snapshots</id>
108-
<url>http://repo.spring.io/snapshot</url>
109-
</pluginRepository>
110-
<pluginRepository>
111-
<id>spring-milestones</id>
112-
<url>http://repo.spring.io/milestone</url>
113-
</pluginRepository>
114-
</pluginRepositories>
11597

11698
</project>

0 commit comments

Comments
 (0)