mysql pom.xml版本号_maven的pom.xml的依赖,什么情况下可以不写版本号?
maven的pom.xml的依賴,什么情況下可以不寫(xiě)版本號(hào)?
0
1640
風(fēng)云劍客
2019/4/23 13:57:36
江蘇 蘇州
以前見(jiàn)過(guò)的pom.xml文件,依賴中都是必須有版本號(hào)的。但今天看到別人寫(xiě)的一個(gè)關(guān)于SpringBoot的demo,依賴中沒(méi)有版本號(hào),也沒(méi)有任何問(wèn)題,項(xiàng)目能正常跑起來(lái)。pom.xml:
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
netgloo
spring-boot-mysql-hibernate
0.0.1-SNAPSHOT
spring-boot-mysql-hibernate
Use MySQL in Spring Boot web application with Hibernate
org.springframework.boot
spring-boot-starter-parent
1.2.3.RELEASE
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-data-jpa
mysql
mysql-connector-java
UTF-8
netgloo.Application
1.7
org.springframework.boot
spring-boot-maven-plugin
我猜原因在這段代碼里:
org.springframework.boot
spring-boot-starter-parent
1.2.3.RELEASE
但還是沒(méi)想明白,為什么一些依賴如mysql連接可以忽略版本號(hào)?
有大觸可以解釋下嗎?
總結(jié)
以上是生活随笔為你收集整理的mysql pom.xml版本号_maven的pom.xml的依赖,什么情况下可以不写版本号?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 功能强大的JavaScript 拖拽库
- 下一篇: 上传头像mysql_上传头像 - MVC