springboot-依赖管理

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.2</version>
    </parent>

父项目作为依赖管理,点进父项目发现还有一个父项目:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.6.2</version>
  </parent>

里面声明了开发中常用的版本号,所以springboot中不用写版本号

二、如果需要修改依赖中的版本号需在pom.xml中添加:

<properties>
        <mysql.version>5.1.43</mysql.version>
    </properties>

 

posted @ 2021-12-30 15:43  冒蓝火的哒哒哒  阅读(65)  评论(0)    收藏  举报