私は、次のしているが、私のdispatcher-servlet.xml
Spring MVCの3.1 - 名前空間のエラー
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:beans="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
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">
にXML検証が無効なコンテンツが要素 ':コンポーネント・スキャン・コンテキスト' で始まる見つかった
を言って失敗しました。 '{"http://www.springframework.org/schema/mvc":argument-resolvers、" http://www.springframework.org/ schema/mvc ":return-value-handler}'が必要です。
私は http://www.springframework.org/schema/mvc/
で定義されたスキーマをチェックして、すべてが罰金のようです。以前私はSpring MVC 3.0を使用していましたが、問題は発生しませんでした。私はすべてのjarファイルを直接WEB-INF/lib
に持っています。何か案は?
更新
これは検証が<context:component-scan base-package="com" />
を失敗したラインであるとはい使用されているすべてのjarファイルはあなたが、
バージョン3.1のすべての瓶はありますか? – Ralph
@skaffman:情報を提供するための質問を更新しました – Raghav