Springboot+Maven

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>

猜你喜欢

转载自www.cnblogs.com/linxinmeng/p/12623113.html