spring rabbit XSD在哪里(兔子的架构位置:命名空间)

Boz*_*zho 8 spring spring-rabbit spring-amqp

http://static.springsource.org/spring-amqp/docs/1.0.x/reference/html/提到了rabbit:命名空间,但从未提到什么是架构位置.谷歌搜索(和命名约定)最终得到:

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

但是这个文件不存在.那xsd在哪里?

gav*_*koa 9

今天XML架构位于:

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
Run Code Online (Sandbox Code Playgroud)

挑选你需要的!


Boz*_*zho 7

作为临时解决方案,我正在使用此架构位置来启用自动完成功能.否则它位于spring-rabbit jar中(但是IDE没有检测到它):

那是(来自堆栈器评论):

我在架构声明的顶部有以下内容:

<?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">
Run Code Online (Sandbox Code Playgroud)


小智 6

我确认了Bozho的解决方案.

所以基本上在我的架构声明的顶部我有以下内容:

<?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">
Run Code Online (Sandbox Code Playgroud)