maven: 标签汇编
发布时间
阅读量:
阅读量
文章结构概览
- 一、范围
- 二、类型
一、scope
对控制依赖项在各个阶段的可见性及使用范围进行有效管理。
<!-- SpringBoot 依赖配置 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
- compile:作为默认作用域,其特性为在整个项目生命周期中均可被访问与调用。
- provided:该作用域在编译及测试阶段均有效,但在打包过程中不会被包含进去,需由运行时环境提供支持。
全部评论 (0)
还没有任何评论哟~
