[英]Can't locate BeanDefinitionParser
我在使用mvc:resources映射資源時遇到問題。 我收到以下錯誤:找不到元素[資源]的BeanDefinitionParser有害資源:ServletContext資源[/WEB-INF/spring-servlet.xml]
我正在使用Spring 3.2.3和Eclipse。 spring-webmvc.jar在構建路徑上。 我相信我的架構已正確設置。 如果有人可以提供幫助,我將不勝感激。 謝謝!
<beans
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd">
解決了。 原來這是一個罐子沖突。 構建路徑中有多個纏綿的org.springframework。*。3.0.1 jar。 一旦我刪除了這些,它就起作用了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.