【发布时间】:2023-03-04 07:31:08
【问题描述】:
在我的 Spring Boot 应用程序中,我配置了以下 JMS 侦听器:
@Component
public class Consumer {
@JmsListener(destination = "image.index.queue")
public void receiveQueue(IndexRequest indexRequest) {
...
}
}
如何从配置(application.properties)而不是硬编码值中提供目标名称“image.index.queue”?
【问题讨论】:
标签: spring spring-boot jms spring-annotations