选择生成的依赖
选择保存的工程路径
查询已经生成的依赖,并修改mysql的版本
1 <dependencies> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-data-redis</artifactId> 5 </dependency> 6 <dependency> 7 <groupId>org.springframework.boot</groupId> 8 <artifactId>spring-boot-starter-jdbc</artifactId> 9 </dependency> 10 <dependency> 11 <groupId>org.springframework.boot</groupId> 12 <artifactId>spring-boot-starter-web</artifactId> 13 </dependency> 14 <dependency> 15 <groupId>org.mybatis.spring.boot</groupId> 16 <artifactId>mybatis-spring-boot-starter</artifactId> 17 <version>2.1.0</version> 18 </dependency> 19 <!--修改mysql的驱动版本--> 20 <dependency> 21 <groupId>mysql</groupId> 22 <artifactId>mysql-connector-java</artifactId> 23 <version>5.1.38</version> 24 </dependency> 25 <dependency> 26 <groupId>org.springframework.boot</groupId> 27 <artifactId>spring-boot-starter-test</artifactId> 28 <scope>test</scope> 29 </dependency> 30 </dependencies>
pom.xml
原文地址:https://www.cnblogs.com/holly8/p/11505151.html
时间: 2024-10-08 05:57:26