若依升级SpringBoot2.7
父pom文件添加MySQL驱动,修改SpringBoot依赖版本为2.7.18<dependency><groupId>com.mysql</groupId><artifactId>mysql-connector-j</artifactId><version>8.1.0</version>
·
父pom文件添加MySQL驱动,修改SpringBoot依赖版本为2.7.18
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.1.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.7.18</version>
<type>pom</type>
<scope>import</scope>
</dependency>
修改ruoyi-admin的pom文件
<!-- Mysql驱动包 -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
在ruoyi-admin的yml文件中添加mvc配置
# Spring配置
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
更多推荐
已为社区贡献2条内容
所有评论(0)