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>

浙公网安备 33010602011771号