springboot2-如何修改版本號


<!-- Spring Boot 繼承的父項目 -->
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
</parent>
<!-- 父項目的父項目 --> 
 <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.2.2.RELEASE</version>
    <relativePath>../../spring-boot-dependencies</relativePath>
  </parent>

里面聲明了常用的依賴的版本號,以后想要添加依賴(驅動)不用寫版本號,當前springboot支持的版本

 

改變版本號,自定義驅動

1、查看spring-boot-dependencies里面規定當前依賴的版本 用的key;2、在當前pom.XML修改版本號

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM