1.运行环境

开发工具:intellij idea

JDK版本:1.8

项目管理工具:Maven 4.0.0

2.Maven Plugin管理

pom.xml配置代码:

 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     <modelVersion>4.0.0</modelVersion>
 6 
 7     <groupId>com.goku</groupId>
 8     <artifactId>spring-boot-redis</artifactId>
 9     <version>1.0-SNAPSHOT</version>
10   <build>
11     <plugins>
12       <plugin>
13         <groupId>org.apache.maven.plugins</groupId>
14         <artifactId>maven-compiler-plugin</artifactId>
15         <configuration>
16           <source>1.7</source>
17           <target>1.7</target>
18         </configuration>
19       </plugin>
20     </plugins>
21   </build>
22 
23   <!-- Spring Boot 启动父依赖 -->
24   <parent>
25     <groupId>org.springframework.boot</groupId>
26     <artifactId>spring-boot-starter-parent</artifactId>
27     <version>1.5.6.RELEASE</version>
28   </parent>
29 
30   <dependencies>
31     <!-- Spring Boot web依赖 -->
32     <dependency>
33       <groupId>org.springframework.boot</groupId>
34       <artifactId>spring-boot-starter-web</artifactId>
35     </dependency>
36     <!-- Spring Boot test依赖 -->
37     <dependency>
38       <groupId>org.springframework.boot</groupId>
39       <artifactId>spring-boot-starter-test</artifactId>
40       <scope>test</scope>
41     </dependency>
42     <!-- Spring Boot redis 依赖 -->
43     <dependency>
44       <groupId>org.springframework.boot</groupId>
45       <artifactId>spring-boot-starter-data-redis</artifactId>
46     </dependency>
47   </dependencies>
48 
49 
50 </project>
View Code

相关文章:

  • 2021-12-08
  • 2021-10-19
  • 2022-12-23
  • 2021-12-19
  • 2021-04-11
  • 2021-10-20
  • 2022-02-23
猜你喜欢
  • 2021-09-19
  • 2022-12-23
  • 2021-04-13
相关资源
相似解决方案