@RunWith注解的作用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bestxianfeng163/article/details/85230395

在使用所有注释前必须使用@RunWith(SpringJUnit4ClassRunner.class),让测试运行于Spring测试环境 Spring框架在org.springframework.test.annotation 包中提供

猜你喜欢

转载自blog.csdn.net/bestxianfeng163/article/details/85230395
今日推荐