请教spring一个问题。 遇到同樣, 可否詳細舉例說明解決方案,是否問題出在InputStream 上? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 import java.io.*; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource;import com.jidea.spring.beans.HelloBean;public class SpringTest { public static void main(String[] args) throws IOException { ClassPathResource res = new ClassPathResource("bean.xml"); XmlBeanFactory factory = new XmlBeanFactory(res); HelloBean hello = (HelloBean) factory.getBean("helloBean"); System.out.println(hello.getHelloWord()); System.out.println(hello.sayHelloToUser()); } } jquery 问题 关于Struts2 json的异常 高手求救,关于Servlet 版主进来看看 CSDN出问题了!!! 问2个简单的问题---来者有分 weblogic8.1和jdk1.5的问题 招版主,Java高手进 在jbuilder中如何通过weblogic来查询数据库 jms与mq的区别? JBuilder7中怎么执行Oracle存储过程? 哪里能下载RTP/RTCP的java源代 初学者请教一个问题
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import com.jidea.spring.beans.HelloBean;public class SpringTest {
public static void main(String[] args) throws IOException { ClassPathResource res = new ClassPathResource("bean.xml");
XmlBeanFactory factory = new XmlBeanFactory(res);
HelloBean hello = (HelloBean) factory.getBean("helloBean");
System.out.println(hello.getHelloWord());
System.out.println(hello.sayHelloToUser());
}
}