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