我想通过代理服务器连接到 Azure 服务总线消息传递队列。我在 Spring 应用程序中使用 Stream Binder 库
pom.xml:
...
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-cloud-azure-servicebus-queue-stream-binder</artifactId>
<version>1.2.8</version>
</dependency>
...
应用程序.yml
...
spring.cloud.azure.servicebus.connection-string: Endpoint=sb://examplehost.servicebus.windows.net/...
spring.cloud.stream.bindings.input.destination: somedestination
spring.cloud.stream.servicebus.queue.bindings.input.consumer.checkpoint-mode: MANUAL
...
我尝试通过命令行参数提供 HTTP 和 SOCKS 代理设置,但这似乎不起作用。是否可以提供 SOCKS 或 HTTP 代理来连接到“examplehost.servicebus.windows.net”?
最佳答案
不太确定为什么代理会出现在您的场景图片中,因为 Azure Spring 云应用程序和服务总线都位于 Azure 环境中。如果万一您的意思是您的应用程序不是 Azure 托管且位于代理后面,那么您可能需要查看
关于java - 是否可以通过代理使用 Spring Cloud Azure Stream Binder?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64754000/