1
は、ペットケア春のサンプルプログラムを実行しようとしていますが、私は、サーブレット・コンテキスト内で次のエラーを取得するスキーマのURLエラー - 春3.0
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/petcare/spring-petcare-3.0.xsd', because 1) could not
find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'petcare:resources'.
春・ペットケア-3.0.xsdはorg.springframeworkに位置しています.samples.petcare.util.configパッケージsrc/main/resources。ここでポイントするようにURLスキーマを変更するにはどうすればよいですか?
の位置を示しており、これをある
行が含まれている展開Webアプリケーション内のファイル
WEB-INF/classes/META-INF/spring.schemas
の存在を確認することができます/クラス/ META-INFは存在しません。これはWebフォルダ 'src/main/webapp/WEB-INF'の下にあります。編集:いいえ、spring.schemasはsrc/main/resourcesの下にあります。私はspringsource Tool Suiteを使用していますので、セットアップはEclipse/EDITと少し異なります。 – sonx@sonx - このタグはxsdファイルで定義されています。おそらく、IDEの外でビルドして実行する必要があります。これは私がやったことです – Raghuram