Activemq经纪人 - 春季滴水
我是Spring Dropwizard的新手,想在简单的客户端应用程序上配置ActiveMQ。
我知道,当使用Spring AutoConfigure放置在Application.properties
中时,以下配置在Spring Boot中起作用。
spring.activemq.brokerUrl=tcp://0.0.0.0:61616
spring.jms.cache.enabled=false
但是,我们如何在春季滴水中实现同一件事呢?我们如何将这些属性放在config.yml
中,以便我的客户端可以开始收听JMS消息?
我尝试了以下配置,但是Spring没有从配置中读取,
spring:
activemq:
broker-url: tcp://localhost:61616
我们如何在Dropwizard配置中配置相同的配置,并以最小的更改以开始聆听主题?
I am new to Spring Dropwizard and want to configure ActiveMQ on a simple client app.
I know that below configuration works in Spring Boot when placed in application.properties
using Spring autoconfigure.
spring.activemq.brokerUrl=tcp://0.0.0.0:61616
spring.jms.cache.enabled=false
But how can we achieve the same thing in Spring Dropwizard? How can we place these properties in config.yml
so that my client can start listening to JMS messages?
I tried the below config but Spring is not getting read from the config
spring:
activemq:
broker-url: tcp://localhost:61616
How can we configure same config in Dropwizard config with minimal changes to start listening to topic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论