Spring mvc 错误,因为找不到元素';豆子';
这是我的调度器servlet。尽管我已经添加了Spring mvc 错误,因为找不到元素';豆子';,spring-mvc,Spring Mvc,这是我的调度器servlet。尽管我已经添加了spring.beans.jar,但我还是得到了作为bean声明的错误 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
spring.beans.jar
,但我还是得到了作为bean声明的错误
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="com.learning" />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
</beans>
我做错了什么?在黑暗中拍摄,但请尝试以下未版本声明:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
您使用的是spring版本3.0吗?是的,spring版本是3.0,哪些bean没有初始化?如果我们可以看到StackTrace的相关部分,可能会有所帮助。我不确定您是如何得到与我发布的声明相同的错误的。我的并没有提到你们正在运行的spring版本是什么(主要版本号和次要版本号)?