1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <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 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+ <parent >
5
+ <groupId >org.springframework.boot</groupId >
6
+ <artifactId >spring-boot-starter-parent</artifactId >
7
+ <version >2.5.13</version >
8
+ <!-- <relativePath>./pom.xml</relativePath>-->
9
+ </parent >
10
+ <groupId >apijson.demo</groupId >
11
+ <artifactId >apijsondemo-multidatasource-kafka</artifactId >
12
+ <version >5.4.0</version >
13
+
14
+ <name >apijsondemo-multidatasource-kafka</name >
15
+ <description >Demo project for testing APIJSON server based on SpringBoot</description >
16
+
17
+ <properties >
18
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
19
+ <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
20
+ <commons-lang3 .version>3.12.0</commons-lang3 .version>
21
+ <druid .version>1.1.16</druid .version>
22
+ <mybatisplus .version>3.5.1</mybatisplus .version>
23
+ <mybatis-plus-support .version>2.3.3</mybatis-plus-support .version>
24
+ <commons-collections4 .version>4.4</commons-collections4 .version>
25
+ <commons .configuration.version>1.10</commons .configuration.version>
26
+ <guava .version>30.1.1-jre</guava .version>
27
+ <fastjson .version>1.2.72</fastjson .version>
28
+ <hutool .version>4.1.1</hutool .version>
29
+ <lombok .version>1.18.4</lombok .version>
30
+ <commons-lang3 .version>3.12.0</commons-lang3 .version>
31
+ <commons .io.version>2.5</commons .io.version>
32
+ <commons .codec.version>1.10</commons .codec.version>
33
+ <commons-collections4 .version>4.4</commons-collections4 .version>
34
+ <commons .configuration.version>1.10</commons .configuration.version>
35
+ <apijson .version>5.4.0</apijson .version>
36
+ <mysql .version>8.0.31</mysql .version>
37
+ <spring-context-support .version>5.3.18</spring-context-support .version>
38
+ <spring-boot-configuration-processor .version>2.6.6</spring-boot-configuration-processor .version>
39
+ <dynamic-datasource-spring-boot-starter .version>3.5.2</dynamic-datasource-spring-boot-starter .version>
40
+ <java .version>1.8</java .version>
41
+ <kafka .version>3.2.1</kafka .version>
42
+ </properties >
43
+
44
+ <dependencies >
45
+ <!-- JDK 11+ 需要,否则启动报错 NoClassDefFoundError: javax/activation/UnsupportedDataTypeException -->
46
+ <dependency >
47
+ <groupId >javax.activation</groupId >
48
+ <artifactId >activation</artifactId >
49
+ <version >1.1.1</version >
50
+ </dependency >
51
+
52
+ <!-- 需要的 APIJSON 相关依赖 -->
53
+ <dependency >
54
+ <groupId >com.github.Tencent</groupId >
55
+ <artifactId >APIJSON</artifactId >
56
+ <version >${apijson.version} </version >
57
+ </dependency >
58
+ <dependency >
59
+ <groupId >com.github.APIJSON</groupId >
60
+ <artifactId >apijson-framework</artifactId >
61
+ <version >${apijson.version} </version >
62
+ </dependency >
63
+
64
+ <!-- 需要用的数据库 JDBC 驱动 -->
65
+
66
+ <!-- Oracle, SQLServer 等其它数据库的 JDBC 驱动,可以在这里加上 Maven 依赖或 libs 目录放 Jar 包并依赖 -->
67
+
68
+ <!-- 需要用的 SpringBoot 框架,1.4.0 以上 -->
69
+ <dependency >
70
+ <groupId >org.springframework.boot</groupId >
71
+ <artifactId >spring-boot-starter-web</artifactId >
72
+ </dependency >
73
+ <dependency >
74
+ <groupId >org.springframework</groupId >
75
+ <artifactId >spring-context-support</artifactId >
76
+ <version >${spring-context-support.version} </version >
77
+ </dependency >
78
+ <dependency >
79
+ <groupId >org.springframework.boot</groupId >
80
+ <artifactId >spring-boot-configuration-processor</artifactId >
81
+ <version >${spring-boot-configuration-processor.version} </version >
82
+ <optional >true</optional >
83
+ </dependency >
84
+ <dependency >
85
+ <groupId >com.alibaba</groupId >
86
+ <artifactId >druid-spring-boot-starter</artifactId >
87
+ <version >${druid.version} </version >
88
+ </dependency >
89
+ <dependency >
90
+ <groupId >com.baomidou</groupId >
91
+ <artifactId >dynamic-datasource-spring-boot-starter</artifactId >
92
+ <version >${dynamic-datasource-spring-boot-starter.version} </version >
93
+ </dependency >
94
+ <dependency >
95
+ <groupId >com.baomidou</groupId >
96
+ <artifactId >mybatis-plus-boot-starter</artifactId >
97
+ <version >${mybatisplus.version} </version >
98
+ <exclusions >
99
+ <exclusion >
100
+ <groupId >com.baomidou</groupId >
101
+ <artifactId >mybatis-plus-generator</artifactId >
102
+ </exclusion >
103
+ </exclusions >
104
+ </dependency >
105
+ <dependency >
106
+ <groupId >com.baomidou</groupId >
107
+ <artifactId >mybatis-plus-support</artifactId >
108
+ <version >${mybatis-plus-support.version} </version >
109
+ </dependency >
110
+ <dependency >
111
+ <groupId >org.apache.commons</groupId >
112
+ <artifactId >commons-collections4</artifactId >
113
+ <version >${commons-collections4.version} </version >
114
+ </dependency >
115
+ <dependency >
116
+ <groupId >mysql</groupId >
117
+ <artifactId >mysql-connector-java</artifactId >
118
+ <version >${mysql.version} </version >
119
+ </dependency >
120
+ <dependency >
121
+ <groupId >com.google.guava</groupId >
122
+ <artifactId >guava</artifactId >
123
+ <version >${guava.version} </version >
124
+ </dependency >
125
+ <dependency >
126
+ <groupId >org.projectlombok</groupId >
127
+ <artifactId >lombok</artifactId >
128
+ <version >${lombok.version} </version >
129
+ </dependency >
130
+ <dependency >
131
+ <groupId >commons-io</groupId >
132
+ <artifactId >commons-io</artifactId >
133
+ <version >${commons.io.version} </version >
134
+ </dependency >
135
+ <dependency >
136
+ <groupId >commons-codec</groupId >
137
+ <artifactId >commons-codec</artifactId >
138
+ <version >${commons.codec.version} </version >
139
+ </dependency >
140
+ <dependency >
141
+ <groupId >commons-configuration</groupId >
142
+ <artifactId >commons-configuration</artifactId >
143
+ <version >${commons.configuration.version} </version >
144
+ </dependency >
145
+ <dependency >
146
+ <groupId >org.apache.kafka</groupId >
147
+ <artifactId >kafka-clients</artifactId >
148
+ <version >${kafka.version} </version >
149
+ </dependency >
150
+ </dependencies >
151
+
152
+ <build >
153
+ <plugins >
154
+ <plugin >
155
+ <groupId >org.springframework.boot</groupId >
156
+ <artifactId >spring-boot-maven-plugin</artifactId >
157
+ <configuration >
158
+ <fork >true</fork >
159
+ <mainClass >apijson.demo.DemoApplication</mainClass >
160
+ </configuration >
161
+ <executions >
162
+ <execution >
163
+ <goals >
164
+ <goal >repackage</goal >
165
+ </goals >
166
+ </execution >
167
+ </executions >
168
+ </plugin >
169
+ <plugin >
170
+ <groupId >org.apache.maven.plugins</groupId >
171
+ <artifactId >maven-compiler-plugin</artifactId >
172
+ <configuration >
173
+ <source >1.8</source >
174
+ <target >1.8</target >
175
+ </configuration >
176
+ </plugin >
177
+ </plugins >
178
+ </build >
179
+
180
+ <repositories >
181
+ <!-- APIJSON 必须用到的托管平台 -->
182
+ <repository >
183
+ <id >jitpack.io</id >
184
+ <url >https://jitpack.io</url >
185
+ <snapshots >
186
+ <enabled >true</enabled >
187
+ </snapshots >
188
+ </repository >
189
+
190
+ <repository >
191
+ <id >spring-snapshots</id >
192
+ <url >https://repo.spring.io/snapshot</url >
193
+ <snapshots >
194
+ <enabled >true</enabled >
195
+ </snapshots >
196
+ </repository >
197
+ <repository >
198
+ <id >spring-milestones</id >
199
+ <url >https://repo.spring.io/milestone</url >
200
+ </repository >
201
+ </repositories >
202
+
203
+ </project >
0 commit comments