使用 Grails RabbitMQ-native 插件,在 application.yml 的 Rabbit 连接配置中使用环境变量插值时,插值不起作用:
rabbitmq:
connections:
- name: defaultConnection
host: example.com
username: ${RABBITMQ_USER}
password: bar
在硬编码相同的凭据工作时导致 AuthenticationFailureException。
有解决方法吗?我不想将凭据硬编码到我们的 RabbitMQ 实例...