![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
junit测试
wzh_csdn
这个作者很懒,什么都没留下…
展开
-
文章标题
public class daoTest { private UserDao dao; @Before public void test2() throws Exception{ ApplicationContext ctx=new ClassPathXmlApplicationContext(“spring-config.xml”); dao=(UserDao) ctx原创 2015-08-23 13:17:57 · 353 阅读 · 0 评论 -
junit-test
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations ={“/spring-config.xml”,”/mybatis/TimeManagerMapper.xml”,”/mybatis/UserMapper.xml”}) public class daoTest { @Autowired pri原创 2015-08-23 13:36:59 · 261 阅读 · 0 评论