qq_37560580 2020-08-05 13:25 采纳率: 0%
浏览 101
已结题

spring boot+ mybatis +junit

图片说明

junit看了很多教程 一启动就报错
1. 1.

 <testResources>
            <testResource>
                <directory>src/main/resources</directory>
            </testResource>
        </testResources>
                <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
        </dependency>

几个junit的包也试过了

  • 写回答

6条回答 默认 最新

  • threenewbee 2020-08-05 13:44
    关注

    目测是数据库的驱动的jar包没有配置好造成的,具体你还是检查下配置。

    评论

报告相同问题?