首页 > 技术文章 > Springboot+Maven

linxinmeng 2020-04-02 21:36 原文

Spingboot框架在maven项目中的引用。直接在pom.xml文件中添加上一下内容。

注意事项:pom.xml文件中只能有一组<parent>标签

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
</parent>
<!--添加依赖-->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>

 

推荐阅读