为什么下没有文件spring-rabbit.xsdhttp://www.springframework.org/schema/rabbit/
为什么在提供spring-[schema].xsd文件方面保持统一的方式。 今天,我碰巧发现URI下没有名为spring-rabbit.xsd的文件。但是,大多数其他模式都将xsd文件命名为spring-suffix,即:spring-beans.xsd在下面 所以,我对为什么会这样感到困惑和好奇 这里的图片显示了这种情况。为什么下没有文件spring-rabbit.xsdhttp://www.springframework.org/schema/rabbit/,spring,spring-rabbit,Spring,Spring Rabbit,为什么在提供spring-[schema].xsd文件方面保持统一的方式。 今天,我碰巧发现URI下没有名为spring-rabbit.xsd的文件。但是,大多数其他模式都将xsd文件命名为spring-suffix,即:spring-beans.xsd在下面 所以,我对为什么会这样感到困惑和好奇 这里的图片显示了这种情况。 我正在使用eclipse开发我的spring项目,其中一个xml配置文件中的头部定义如下所示: <?xml version="1.0" encoding="UT
我正在使用eclipse开发我的spring项目,其中一个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"/>
没有必要-spring从jar映射到您正在使用的版本的适当模式(映射在
/META-INF/spring.schemas
中)
互联网上的模式根本不被使用
编辑
链接现在就在那里。我在问题中添加了其他信息,eclipse中存在问题,执行环境中没有错误。为什么
http://www.springframework.org
keep united way on Provising spring-[schema].xsd文件。我将添加链接,但通常最好使用支持spring的IDE(如spring eclipse插件,或,并在项目中启用spring Nature)或IntelliJ IDEA;这些IDE知道Spring如何解析模式。
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