一、spring boot項目訪問外部接口地址
引用的地址
二、pom文件的標籤的解析
pom文件標籤描述的地址
1、常用
<!-- 依賴關係 -->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<!-- exclusions 當計算傳遞依賴時, 從依賴構件列表裏,列出被排除的依賴構件集。即告訴maven你只依賴指定的項目,不依賴項目的依賴。此元素主要用於解決版本衝突問題-->
<exclusions>
<exclusion>
<artifactId>tools-model</artifactId>
<groupId>com.demo</groupId>
</exclusion>
</exclusions>
<!-- scope 說明
- compile :默認範圍,用於編譯
- provided:類似於編譯,但支持你期待jdk或者容器提供,類似於classpath
- runtime: 在執行時,需要使用
- test: 用於test任務時使用
- system: 需要外在提供相應得元素。通過systemPath來取得
- systemPath: 僅用於範圍爲system。提供相應的路徑
- optional: 標註可選,當項目自身也是依賴時。用於連續依賴時使用
-->
<scope>test</scope>
<!--
- systemPath: 僅用於範圍爲system。提供相應的路徑
- optional: 標註可選,當項目自身也是依賴時。用於連續依賴時使用
-->
<!--
<type>jar</type>
<optional>true</optional>
-->
</dependency>
</dependencies>
<!--以值替代名稱,Properties可以在整個POM中使用,也可以作爲觸發條件。格式是<name>value</name> -->
<properties>
<java.version>1.1.0-RELEASE</java.version>
<tools.version>1.0-SNAPSHOT</tools.version>
</properties>