繁体   English   中英

是否可以通过代理使用 Spring Cloud Azure Stream Binder?

[英]Is it possible to use Spring Cloud Azure Stream Binder with a proxy?

我想通过代理服务器连接到 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 代理设置,但这似乎不起作用。 是否可以为与“examplehost.servicebus.windows.net”的连接提供 SOCKS 或 HTTP 代理?

不确定为什么代理会出现在您的场景中,因为 Azure Spring 云应用程序和服务总线都在 Azure 环境中。 如果有任何机会,您的意思是您的应用程序不是 Azure 托管和代理,那么您可能需要查看

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM