2017-02-08 3 views
0

Everythhingがタイトルに入っていると思います。 spring-cloud-stream-schema-serverポートとspring-cloud-stream-schemaクライアントのenpointはハードコードされています。 参照DefaultSchemaRegistryClientspring-cloud-stream-schemaクライアント。どのように簡単にサーバーのポートを設定するには?

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

私はまた、アプリケーションコンテキストでのスムーズな交換を可能にするためにいいだろうという、SchemaRegistryClientConfigurationは条件付き注釈で保護されていないことに気付きます。

少なくともクライアントエンドポイントをカスタマイズできるように計画されていますか?私はSpring Bootを使用してサーバーを展開し、ポートを設定したり、少なくともサービスレジストリを使用するという習慣を持っています。

おかげ

+0

、[OK]を9090、申し訳ありません... undocummentedプロパティは次のとおりです。春.cloud.stream.schemaRegistryClient.endpoint –

+0

ハイライトをありがとう。これはすぐに気をつけます:https://github.com/spring-cloud/spring-cloud-stream/issues/788 –

答えて

0

= 9090 使用spring.cloud.stream.schemaRegistryClient.endpoint = localhostのレジストリはserver.portであれば:クライアント

関連する問題