[英]Spring Boot AMQP unable to do a SSL connection
I am using a Springboot application to connect to RabbitMQ server. 我正在使用Springboot应用程序连接到RabbitMQ服务器。 The connection was working fine but then the server changed the port to SSL enabled.
连接工作正常,但随后服务器将端口更改为启用SSL。
I added a property 我添加了一个属性
spring.rabbitmq.ssl.enabled: true
It worked for sometime but now getting below exception 它曾经工作了一段时间,但现在却低于异常
org.springframework.amqp.AmqpIOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Any idea, what I am missing here ? 任何想法,我在这里想念什么?
I was also getting the same exception. 我也遇到了同样的例外。 In my case, by mistake I was using the below mentioned property for mentioning the rabbitmq host.
就我而言,我错误地使用了下面提到的属性来提及rabbitmq主机。
spring.rabbitmq.addresses=hosturl
spring.rabbitmq.port=5671
Then I updated the above property with the below one and it is working fine: 然后我用下面的属性更新了上面的属性,它工作正常:
spring.rabbitmq.host=hostURL
spring.rabbitmq.port=5671
spring.rabbitmq.addresses- if you are using this then make sure to mention the rabbmitmq url as host:port and comma seperated values for multiple VMs(rabbitmq cluster) spring.rabbitmq.addresses-如果使用此地址,请确保将rabbmitmq url提及为host:port和多个VM(rabbitmq集群)的逗号分隔值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.