步骤如下:

快速创建一个简单的springboot的module

快速创建一个简单的springboot的module

我选1.8版本是因为我的maven下的settings.xml是1.8.版本的

快速创建一个简单的springboot的module

快速创建一个简单的springboot的module

 

 

 快速创建一个简单的springboot的module

 

 然后就可以在自己的项目pom.xml中看到添加好的依赖。

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.0.1</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

相关文章:

  • 2021-12-01
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2021-10-16
  • 2021-12-11
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2021-08-06
  • 2021-06-21
  • 2021-11-28
  • 2021-08-09
  • 2021-12-31
相关资源
相似解决方案