i follow the code in "spring in action"
but it's told me:
C:\user\src>javac hello\HelloApp.java
hello\HelloApp.java:12: 找不到符号
符号: 构造函数 XmlBeanFactory(java.io.FileInputStream)
位置: 类 org.springframework.beans.factory.xml.XmlBeanFacto ry
BeanFactory factory = new XmlBeanFactory(new FileInputStream("hello.xml"))
;
^
how to use XmlBeanFactory?
i already set the spring in classpath:
C:\user\src>echo %classpath%
.;C:\Program Files\Java\jdk1.5.0_07\lib\tools.jar;C:\user\softw are-for-install\j
2ee-software\spring-framework-1.2.8-with-dependencies\spring-framework-1.2.8\dis
t\spring.jar;


Reply With Quote