|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <parent> |
| 6 | + <groupId>org.springframework.boot</groupId> |
| 7 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 8 | + <version>2.1.3.RELEASE</version> |
| 9 | + <relativePath/> <!-- lookup parent from repository --> |
| 10 | + </parent> |
| 11 | + <modelVersion>4.0.0</modelVersion> |
| 12 | + |
| 13 | + <artifactId>lab-07-spring-data-redis-unit-test</artifactId> |
| 14 | + |
| 15 | + <dependencies> |
| 16 | + |
| 17 | + <!-- 实现对 Redisson 的自动化配置 --> |
| 18 | + <dependency> |
| 19 | + <groupId>org.redisson</groupId> |
| 20 | + <artifactId>redisson-spring-boot-starter</artifactId> |
| 21 | + <version>3.11.3</version> |
| 22 | + </dependency> |
| 23 | + |
| 24 | + <!-- 方便等会写单元测试 --> |
| 25 | + <dependency> |
| 26 | + <groupId>org.springframework.boot</groupId> |
| 27 | + <artifactId>spring-boot-starter-test</artifactId> |
| 28 | + <scope>test</scope> |
| 29 | + </dependency> |
| 30 | + |
| 31 | + <!-- 等会示例会使用 fastjson 作为 JSON 序列化的工具 --> |
| 32 | + <dependency> |
| 33 | + <groupId>com.alibaba</groupId> |
| 34 | + <artifactId>fastjson</artifactId> |
| 35 | + <version>1.2.61</version> |
| 36 | + </dependency> |
| 37 | + |
| 38 | + <!-- Spring Data Redis 默认使用 Jackson 作为 JSON 序列化的工具 --> |
| 39 | + <dependency> |
| 40 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 41 | + <artifactId>jackson-databind</artifactId> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + <dependency> |
| 45 | + <groupId>commons-io</groupId> |
| 46 | + <artifactId>commons-io</artifactId> |
| 47 | + <version>2.6</version> |
| 48 | + </dependency> |
| 49 | + |
| 50 | + <!-- 内嵌 Redis 服务,用于单元测试 --> |
| 51 | + <dependency> |
| 52 | + <groupId>it.ozimov</groupId> |
| 53 | + <artifactId>embedded-redis</artifactId> |
| 54 | + <version>0.7.2</version> |
| 55 | + <scope>test</scope> |
| 56 | + </dependency> |
| 57 | + |
| 58 | + </dependencies> |
| 59 | + |
| 60 | +</project> |
0 commit comments