This repository has been archived by the owner on May 17, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom_1.xml
80 lines (68 loc) · 2.66 KB
/
pom_1.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
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
此示例中,更换了simbot-lovelycat-sb-starter中默认使用的json解析器。
默认情况下是使用jackson进行解析的,
此示例中切换为了fast-json。
-->
<!-- 使用springboot的parent -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>simbot.example</groupId>
<artifactId>lovelycat-sb-demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>lovelycat-sb-demo</name>
<description>Simbot demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- 使用simbot的parent进行版本控制 -->
<dependency>
<groupId>love.forte.simple-robot</groupId>
<artifactId>parent</artifactId>
<version>2.0.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>love.forte.simple-robot</groupId>
<artifactId>component-lovelycat-httpapi-spring-boot-starter</artifactId>
<!-- 排除simbot中的jackson解析器 -->
<exclusions>
<exclusion>
<groupId>love.forte.simple-robot.serialization</groupId>
<artifactId>json-jackson</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 切换为fastjson解析器 -->
<dependency>
<groupId>love.forte.simple-robot.serialization</groupId>
<artifactId>json-fastjson</artifactId>
</dependency>
<!-- 使用spring-web进行http事件处理 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>