请教关于Spring的问题
最近刚刚接触spring,照着网上的例子也做了做。现在出现了问题。
我参考的文章在这里:
http://blog.csdn.net/javamxj/archive/2005/06/27/404991.aspx
我使用的是eclipse3.0.1。
在写Bean.xml文件时就抱错了:
Element type "bean" must be followed by either attribute specifications, ">" or "/>".
Bean.xml是这样写的:
<?xml version="1.0" encoding="GBK"?>
<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN/EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="helloBean" class=""com.HelloBean">
<property name="helloworld">
<value>Hello!Rick</value>
</property>
</bean>
</beans>
我实在是不知道错在哪里了。
另:我导入了spring.jar,log4j.jar和common-logging.jar。