父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
Logo

快速构建 Web 应用程序

更多推荐