首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到用于XML架构命名空间的Spring

找不到用于XML架构命名空间的Spring
EN

Stack Overflow用户
提问于 2021-10-22 11:57:36
回答 1查看 37关注 0票数 0

我想在jboss服务器上运行spring appp,但是我遇到了这样的问题:无法为XML schema命名空间http://www.springframework.org/schema/rabbit找到Spring

代码语言:javascript
复制
applicationcontext: 
   <?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"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:ehcache="http://www.springmodules.org/schema/ehcache"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                        http://www.springframework.org/schema/rabbit
                        http://www.springframework.org/schema/rabbit/spring-rabbit.xsd
                        http://www.springframework.org/schema/context
                        http://www.springframework.org/schema/context/spring-context-2.5.xsd
                        http://www.springmodules.org/schema/ehcache
                        http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd
                        http://www.springframework.org/schema/util
                        http://www.springframework.org/schema/util/spring-util.xsd"> 

依赖项:

代码语言:javascript
复制
<dependency>
        <groupId>org.springframework.amqp</groupId>
        <artifactId>spring-amqp</artifactId>
        <version>1.5.3.RELEASE</version>
    </dependency>

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

回答 1

Stack Overflow用户

发布于 2021-10-25 18:03:58

添加此依赖项。

代码语言:javascript
复制
<dependency>
    <groupId>org.springframework.amqp</groupId>
    <artifactId>spring-rabbit</artifactId>
    <version>2.3.11</version>
</dependency>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69676494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档