SpringBoot中单元测试@Test注解失效

    技术2023-11-13  114

    在网上看到了好多,都是说将以下代码进行注释。

    <!-- <scope>test</scope>-->

    但是我这边测试还是不可以,然后我试着切换了一下版本就可以了。

    <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.9</version> <!-- <scope>test</scope>--> </dependency>

     

    Processed: 0.011, SQL: 10