spring-boot-starter-parent的作用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010675669/article/details/90031118

一般我们创建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.默认的资源过滤与插件管理

猜你喜欢

转载自blog.csdn.net/u010675669/article/details/90031118
今日推荐