ssh之雇员管理系统(1)-spring测试
2013-05-13 15:53
405 查看
View Code
package com.wang.ssh; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class Test { public static void main(String[] args) { /** * 测试Spring配置是否成功 */ ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml"); TestServcie testServcie = (TestServcie)ac.getBean("testServcie"); System.out.println(testServcie.getName()+"***"); } }
相关文章推荐
- Spring 雇员管理系统SSH 4
- Spring 雇员管理系统SSH 5
- Spring 雇员管理系统SSH 1
- Spring 雇员管理系统SSH 6
- ssh之雇员管理系统(5)-将struts+spring整合
- Spring 雇员管理系统SSH 3
- 雇员管理系统ssh之准备2
- 雇员管理系统-SSH版(四)
- ssh之雇员管理系统(2)-hibernate测试
- ssh之雇员管理系统(8)-增加其他功能
- 雇员管理系统ssh之准备1
- 雇员管理系统-SSH版(五)
- 雇员管理系统-SSH版(二)
- ssh之雇员管理系统(6)-解决中文乱码问题
- ssh之雇员管理系统(10)-分页实现
- 雇员管理系统-SSH版(六)
- 雇员管理系统-SSH版(九)
- 雇员管理系统-SSH版(七)