0

我不知道该怎么做:关于上下文应用程序我必须知道什么?依赖怎么办?

我将它用于应用程序上下文:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util" 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.1.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.1.xsd
       http://www.springframework.org/schema/util
       http://www.springframework.org/schema/util/spring-util-3.1.xsd">



<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver" id="viewResolver">
  <property name="viewClass" value="org.springframework.web.servlet.view.JstlView">
  <property name="prefix" value="/WEB-INF/jsp/">
  <property name="suffix" value=".jsp">
 </property></property></property></bean>
 <dependency org="org.springframework" name="org.springframework.web.portlet" rev="3.1.2.RELEASE" />

</beans>

我在我的库中包含 spring 3.1.2 并构建路径

我收到错误:找不到元素“bean”的声明。

4

0 回答 0