set heartbeat property on rabbitmq autoconfig connectionfactory bean

前端 未结 1 1612
故里飘歌
故里飘歌 2021-01-26 01:27

How should I set the heartbeat property on a CachingConnectionFactory bean in rabbitmq spring? This is in a cloud foundry environment. So the application will be using a service

1条回答
  •  后悔当初
    2021-01-26 02:13

    See the Spring Boot Properties Documentation.

    spring.rabbitmq.requested-heartbeat= # Requested heartbeat timeout, in seconds; zero for none.
    

    0 讨论(0)
提交回复
热议问题