摘要:
###1. 整合Junit框架 //在@Test所在的类上添加,并在所要用到的方法上 类型注入 @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations="classpath:com/c21w/SpringLear 阅读全文
posted @ 2020-08-27 02:43
一只小白的进修路
阅读(174)
评论(0)
推荐(0)
摘要:
//需要在applicationContext.xml中配置 <context:component-scan base-package="com.c21w"></context:component-scan> ###1. 把类存入IOC容器 //类上注解 //XX 和xml中bean标签的id作用相 阅读全文
posted @ 2020-08-27 01:43
一只小白的进修路
阅读(162)
评论(0)
推荐(0)