一:找到自己需要的版本,可以去maven倉庫找 https://mvnrepository.com/ 搜索相關的依賴名稱,例如需要MySQL的驅動,直接搜索mysql就可以
1,ctrl + 鼠標左鍵 查看<parent>標簽內的groupId,進入后,CTRL + 鼠標左鍵 點擊<parent>標簽內的 spring-boot-dependencies
2,在spring-boot-dependencies內查看當前版本規定使用的版本 使用的 key,如下圖key為 mysql.version
3,在當前項目里的 <properties>標簽內,使用key重寫配置,如下圖