<!-- 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修改版本號