Spring-test这个包的问题

在这里插入图片描述
spring-tes-4.2.4这个测试 包要使用,其实还要附加aop 的包才可以用,虽然不知道为什么,但是还是记下来好点
在这里插入图片描述
spring-tes-4.2.4
spring-aop-4.2.4这两个一起用才能使用
在这里插入图片描述@RunWith(SpringJUnit4ClassRunner.class)
//指定创建容器时使用哪个配置文件
@ContextConfiguration(“classpath:applicationContext.xml”)

猜你喜欢

转载自blog.csdn.net/qq_41519442/article/details/90408511