Spring 整合框架

1. 整合Junit框架

//在@Test所在的类上添加,并在所要用到的方法上 类型注入

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:com/c21w/SpringLearning/k_Junit/applicationContext.xml")

posted @ 2020-08-27 02:43  一只小白的进修路  阅读(174)  评论(0)    收藏  举报