なぜhttp://www.springframework.orgはspring- [schema] .xsdファイルを提供していますか。http://www.springframework.org/schema/rabbit/の下にファイルspring-rabbit.xsdが存在しない理由
今日、偶然、http://www.springframework.org/schema/rabbit/の下にspring-rabbit.xsdという名前のファイルがないことがわかりました。しかし、他のほとんどのスキーマでは、spring-suffixという名前のxsdファイルがあります。つまり、spring-beans.xsdはhttp://www.springframework.org/schema/beans/です。
私は混乱して、なぜこれが起こるのか不思議です。
私は私の春のプロジェクトを開発するためにEclipseを使用していて、私のXML設定ファイルのいずれかで頭の定義は下を示している。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/rabbit
http://www.springframework.org/schema/rabbit/spring-rabbit.xsd">
<rabbit:admin connection-factory="connectionFactory"/>
http://www.springframework.org/schema/rabbit/spring-rabbit.xsd
を使用して、私は日食XMLの問題を得る: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'rabbit:admin'. application-consumer.xml /my-spring-project/src/main/resources/config line 16 XML Problem
http://www.springframework.org/schema/rabbit/spring-rabbit-1.6.xsd
を使用している場合、XMLに問題はありません。
だからこそ、私は混乱しています。http://www.springframework.org
は、豆、データ、コンテキストなどの他のスキーマと同じようにhttp://www.springframework.org/schema/rabbit/spring-rabbit.xsd
を提供する必要があります。
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/beans/spring-data.xsd
http://www.springframework.org/schema/context/spring-context.xsd
私は質問に追加情報を追加し、問題はEclipseに存在し、実行環境にエラーはありません。なぜ 'http:// www.springframework.org'がspring- [schema] .xsdファイルを提供しているのか、 – klvoek
リンクを追加しますが、一般的には、Spring対応のIDE([春のEclipseプラグイン]や[STS Eclipseのバンドル](https://spring.io/tools/sts)など)を使用し、Springを有効にしてくださいプロジェクトの性質)、またはIntelliJ IDEA。これらのIDEはSpringがスキーマをどのように解決するかを知っています。 –
リンクがあります。 –