ssl - 由 : java. lang.ClassNotFoundException : org. springframework.xd.dirt.integration.rabbit.RabbitConnectionFactoryBean 引起

标签 ssl spring-amqp

在我们的 Spring 应用程序中,我们添加了 spring rabbit listner 来读取消息。添加 SSL 后,我们收到以下错误(未找到类异常)。然后在 POM 文件中添加 spring-xd_dirt 的 POM 依赖。之后它会出现错误,例如 pom.xml 中缺少工件。 有人可以帮我找到依赖的 JAR 文件吗?

<bean id="clientConnectionFactory"
        class="org.springframework.xd.dirt.integration.rabbit.RabbitConnectionFactoryBean">
        <property name="useSSL" value="true" />
</bean>
<dependency>
          <groupId>org.springframework.xd</groupId>
          <artifactId>spring-xd-dirt</artifactId>
          <version>1.0.4.RELEASE</version>
        </dependency> 
    Multiple annotations found at this line:
        - Missing artifact org.kitesdk:kite-data-
         core:jar:0.13.0
        - Missing artifact jdk.tools:jdk.tools:jar:1.6

最佳答案

您的意思可能是 org.springframework.amqp.rabbit.connection.RabbitConnectionF‌ actoryBean?完全不清楚为什么人们会在没有像 Spring XD 这样的支持的情况下使用这样一个项目......

it worked with the one you suggested class file for me. But issue here is docs.spring.io/spring-amqp/reference/htmlsingle (RabbitConnectionFactoryBean and Configuring SSL) - the example they have mentioned the class file which I have mentioned in this issue.

请就此事提出 JIRA,我们将解决它:https://jira.spring.io/browse/AMQP !

关于ssl - 由 : java. lang.ClassNotFoundException : org. springframework.xd.dirt.integration.rabbit.RabbitConnectionFactoryBean 引起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50468895/

相关文章:

php - 如何签署 Apache 服务器以便所有来自目录的请求都通过 HTTPS 并包含您的私钥?

android - 在Android中使用自签名证书实现https连接的正确方法是什么?

如果客户端需要,python 启用 ssl

java - Spring AMQP 对消息超时采取行动

spring - java.lang.NoClassDefFoundError : org/springframework/messaging/handler/annotation/support/MessageHandlerMethodFactory

java - Spring RabbitMQ教程导致Connection Refused错误

java - spring amqp 中的 CannotLoadBeanClassException

ssl - 一个 NFC 设备是否能够在不再次点击手机的情况下响应 P2P?

security - 我安装的 .cer 证书在 IIS 中没有显示是什么?

java - 如何在摘除 Amqp/RabbitMQ 队列(Spring AMQP)之前执行 'check'