如何在Spring中实例化非Action类
第一个字母小写
实在不行就这样调用。
ApplicationContext context = new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml");
ServiceImpl wcs = (ServiceImpl) context.getBean("serviceImpl");
if(wcs != null){
}
发布时间: 2012-10-06 17:34:01 作者: rapoo
如何在Spring中实例化非Action类
第一个字母小写
实在不行就这样调用。
ApplicationContext context = new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml");
ServiceImpl wcs = (ServiceImpl) context.getBean("serviceImpl");
if(wcs != null){
}