首页
软件开发
登录
6mi
u
盘
搜
搜 索
软件开发
spring学习bug记录:引入了junit还是用不了@Test注解
spring学习bug记录:引入了junit还是用不了@Test注解
xiaoxiao
2025-05-13
14
Q:引入了junit还是用不了@Test注解
pom.xml配置如下:
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency>
A:<scope>限定了包的使用范围,去掉<scope>test</scope>即可
转载请注明原文地址: https://yun.8miu.com/read-137842.html
最新回复
(
0
)