spring-cloud-stream-schema 客户;如何轻松设置服务器端口?

spring-cloud-stream-schema client; how to easily set up server port?

我想一切都在标题中。 spring-cloud-stream-schema-server 端口和 spring-cloud-stream-schema 客户端端点是硬编码的。 请参见 DefaultSchemaRegistryClient

public class DefaultSchemaRegistryClient implements SchemaRegistryClient {
...
    private String endpoint = "http://localhost:8990";

我还注意到 SchemaRegistryClientConfiguration 不受条件注释的保护,如果允许在应用程序上下文中进行平滑替换就好了。

是否计划至少可以自定义客户端??我正在使用 Spring Boot 来部署服务器并且有自由设置端口的习惯,或者至少使用服务注册表。

谢谢

如果在注册表中 server.port=9090 在客户端

上使用 spring.cloud.stream.schemaRegistryClient.endpoint=localhost:9090