Where is the rabbit spring XSD (layout for rabbit space: namespace)

http://static.springsource.org/spring-amqp/docs/1.0.x/reference/html/ mentions the rabbit: namespace, but never mentions what the layout of the schema is. Google (and naming conventions) ends:

http://www.springframework.org/schema/rabbit/spring-rabbit.xsd

but these files do not exist. So where is xsd?

+6
source share
6 answers

As a workaround, I use this layout layout to enable autocomplete. Otherwise, it is in the spring -rabbit bank (but the IDE does not detect it):

That is (from a comment from the stacker ):

I have the following at the top of my schema declaration:

 <?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:rabbit="http://www.springframework.org/schema/rabbit" 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/rabbit https://raw.github.com/SpringSource/spring-amqp/master/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd"> 
+6
source

Today's XML schema is located at:

 http://www.springframework.org/schema/rabbit/spring-rabbit-1.3.xsd http://www.springframework.org/schema/rabbit/spring-rabbit-1.4.xsd http://www.springframework.org/schema/rabbit/spring-rabbit-1.5.xsd 

Choose any you need!

+7
source

I reaffirm Bozho's decision .

Basically at the top of my schema declaration, I have the following:

 <?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:rabbit="http://www.springframework.org/schema/rabbit" 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/rabbit https://raw.github.com/SpringSource/spring-amqp/master/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd"> 
+5
source

I know this question is older, and my answer probably would not have worked during the original question, but in case anyone happened to this question after today ...

Currently there is xsd spring rabbit:

http://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd

And to use it, you must have spring -rabbit-1.0.0.RELEASE.jar in your classpath.

+2
source

Find a spring jar with META-INF / spring circuits that have a link to rabbit xsd. The problem was resolved in my configuration by adding this maven dependency

  <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-amqp</artifactId> <version>2.1.3.RELEASE</version> </dependency> 

or

  <dependency> <groupId>org.springframework.amqp</groupId> <artifactId>spring-rabbit</artifactId> <version>1.1.1.RELEASE</version> </dependency> 
+2
source

It should be included in AMQP jars. According to this thread, you should use the snapshot version instead of RC1, and then you should not get any errors.

+1
source

Source: https://habr.com/ru/post/893060/


All Articles