|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <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"> |
4 | 4 | <modelVersion>4.0.0</modelVersion>
|
5 | 5 |
|
6 | 6 | <groupId>apijson.demo</groupId>
|
|
9 | 9 | <packaging>jar</packaging>
|
10 | 10 |
|
11 | 11 | <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> |
20 | 15 |
|
21 | 16 | <properties>
|
22 | 17 | <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> |
24 | 20 | <java.version>1.8</java.version>
|
25 | 21 | </properties>
|
26 | 22 |
|
27 | 23 | <dependencies>
|
28 |
| - <!-- APIJSONORM 需要用的 JSON 封装/解析库,1.2.24 以上 --> |
29 | 24 | <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> |
33 | 28 | </dependency>
|
34 |
| - |
35 |
| - <!-- APIJSONBoot 需要用的 Spring 框架,1.4.1 以上 --> |
36 | 29 | <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> |
44 | 33 | </dependency>
|
| 34 | + <!-- APIJSONORM 需要用的 JSON 封装/解析库,1.2.24 以上 --> |
| 35 | + |
| 36 | + <!-- APIJSONBoot 需要用的 Spring 框架,1.4.1 以上 --> |
45 | 37 | <dependency>
|
46 | 38 | <groupId>org.springframework.boot</groupId>
|
47 | 39 | <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> |
55 | 41 | </dependency>
|
56 | 42 | <!-- 没找到合适且稳定的 Oracle 的 JDBC Maven 依赖,已在 libs 目录放了对应的 jar 包来替代 -->
|
57 | 43 |
|
|
68 | 54 | <plugin>
|
69 | 55 | <groupId>org.springframework.boot</groupId>
|
70 | 56 | <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> |
71 | 68 | </plugin>
|
72 | 69 | <plugin>
|
73 | 70 | <groupId>org.apache.maven.plugins</groupId>
|
|
80 | 77 | </plugins>
|
81 | 78 | </build>
|
82 | 79 |
|
83 |
| - <!-- Allow access to Spring milestones and snapshots --> |
84 |
| - <!-- (you don't need this if you are using anything after 0.5.0.RELEASE) --> |
85 | 80 | <repositories>
|
86 | 81 | <repository>
|
87 | 82 | <id>spring-snapshots</id>
|
88 |
| - <url>http://repo.spring.io/snapshot</url> |
| 83 | + <url>https://repo.spring.io/snapshot</url> |
89 | 84 | <snapshots>
|
90 | 85 | <enabled>true</enabled>
|
91 | 86 | </snapshots>
|
92 | 87 | </repository>
|
93 | 88 | <repository>
|
94 | 89 | <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> |
99 | 91 | </repository>
|
100 | 92 | <repository>
|
101 | 93 | <id>jitpack.io</id>
|
102 | 94 | <url>https://jitpack.io</url>
|
103 | 95 | </repository>
|
104 | 96 | </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> |
115 | 97 |
|
116 | 98 | </project>
|
0 commit comments