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

标签 java spring azure

我想通过代理服务器连接到 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/

相关文章:

java - 有什么方法可以在Java中表示无限的 future /时间的结束吗?

java - Android App : Log-in to website, 维护 session - Java

java - Maven:添加用于编译测试的依赖项,但不用于运行测试

Spring Controller @RequestBody 可以上传文件吗?

c# - Service Fabric 容器 - 无法访问集群内的服务

azure - 具有横向扩展/多个实例的 Application Insights 自定义指标 : how do I combine or disambiguate across instances?

java - 给定 4 个纬度/经度和方位角的边界框

java - DataSource.getConnection 方法在数据库重新启动或理想超时后返回已关闭的连接

java - Spring Integration 文件处理将其发送到 http

c# - 使用 Pulumi 将应用服务 - 身份分配到 Azure 中的 KeyVault