一般我们创建springboot项目时,pom.xml一般都有下面这个配置,那它作用是什么?
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
spring-boot-starter-parent主要提供了如下默认配置:
1.java版本默认使用1.8
2.编码格式默认使用utf-8
3.提供Dependency Management进行项目依赖的版本管理
4.默认的资源过滤与插件管理