-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
118 lines (111 loc) · 4.34 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>subscribe_1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>subscribe_1</name>
<description>微信图书馆,关注公众号的事件处理程序</description>
<properties>
<!-- 基于Spring Boot项目可以使用java.version来指定JDK的版本号,可选的:1.8、9、10、11 -->
<!-- 11是目前最新的稳定版,下一个稳定版2年后发布 -->
<java.version>11</java.version>
<!-- 源代码的字符编码 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- 报告文件的字符编码 -->
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<!-- JAXB的API,一般引入Spring、JPA相关的依赖以后,往往都会有 -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<!-- JAXB的核心库 -->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<!-- JAXB的实现库 -->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.2</version>
</dependency>
<!-- Jackson原本是用于Java和JSON相互转换的,后来为了实现Java和XML的转换,增加了jackson-dataformat-xml -->
<!-- 如果要使用Jackson,那么就用这个转换器即可! -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency>
<!-- 自动配置Spring Data JPA,使用Hibernate实现 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- 自动配置Redis,使用Lettuce驱动 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!-- 自动配置Spring MVC -->
<!-- <dependency> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-starter-web</artifactId> -->
<!-- </dependency> -->
<!-- 数据库驱动 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Spring Boot的测试支持 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 单元测试框架 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<!-- <version>4.12</version> -->
<scope>test</scope>
</dependency>
<!-- 开发者工具,用于实现热部署(修改文件以后马上生效) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<!-- scope必须是runtime才能生效 -->
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Spring Boot的Maven插件,用于在打包的时候把所有相关jar文件打包在一起 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 可以打包成一个可执行jar文件 -->
<executable>true</executable>
<!-- fork为true的时候 -->
<!-- 将可以使用 mvn spring-boot:start 启动程序 -->
<!-- 并且可以使用 mvn spring-boot:stop 停止程序 -->
<fork>true</fork>
<!-- 每个fork出来的进程都会需要一个JMX端口,不能重复 -->
<!-- 建议:每个人使用一段的端口号,比如阿宝使用 9001~9099,小宝使用9100~9199 -->
<jmxPort>9101</jmxPort>
</configuration>
</plugin>
</plugins>
</build>
</project>