添加Spring JUnit类运行器。您还应该使用@Test批注,而不是扩展TestCase。
例如
@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
添加Spring JUnit类运行器。您还应该使用@Test批注,而不是扩展TestCase。
例如
@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = {"classpath:applicationContext.xml"})上一篇 我可以在php中的SESSION数组上使用array_push吗?
下一篇 项目构建错误:org.springframework.cloud:'spring-cloud-starter-eureka-server:jar缺少'dependencies.de