您的位置:首页 > 编程语言 > Java开发

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()+"***");
}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: