美文网首页
springboot pom文件的标签

springboot pom文件的标签

作者: 邱风扫落叶 | 来源:发表于2019-05-30 21:22 被阅读0次

<parent>父模块标签,指定哪个模块为父模块,一般的结构是这样的

<parent>
        <groupId>com.example</groupId>
        <artifactId>demo</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

前面是你创建的父模块的信息,<relativePath>标签是指定你的pom文件的路径

<dependencyManagement>一般来说子模块的依赖会使用父模块的依赖。他们会向上寻找,直到找到有 <dependencyManagement>标签的里面的依赖

<dependencies>添加依赖的标签

<dependency>依赖标签,一般在<dependencies>里

相关文章

网友评论

      本文标题:springboot pom文件的标签

      本文链接:https://www.haomeiwen.com/subject/mxpbtctx.html