2017-02-08 1 views
0

Everythhing이 제목에 있습니다. spring-cloud-stream-schema-server 포트와 spring-cloud-stream-schema 클라이언트 enpoint는 하드 코딩됩니다. 참조 DefaultSchemaRegistryClient 나는 또한 SchemaRegistryClientConfiguration는 조건부 주석에 의해 보호되지 않는다는 것을 통지spring-cloud-stream-schema 클라이언트; 쉽게 서버 포트를 설정하는 방법?

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

, 즉 애플리케이션 컨텍스트 내에서 원활하게 교체 할 수 있도록 좋은 것입니다.

적어도 클라이언트 엔드 포인트를 사용자 지정할 수 있습니까? 저는 Spring Boot를 사용하여 서버를 배포하고 자유롭게 포트를 설정하거나 적어도 서비스 레지스트리를 사용하는 버릇이 있습니다.

감사

+0

이 좋아, 죄송합니다 ... undocummented 속성입니다 : 봄 .cloud.stream.schemaRegistryClient.endpoint –

+0

주셔서 감사합니다. 곧 처리 될 것입니다. https://github.com/spring-cloud/spring-cloud-stream/issues/788 –

답변

0

경우 레지스트리 server.port에 = 9090 사용 spring.cloud.stream.schemaRegistryClient.endpoint는 로컬 호스트 = 9090 클라이언트

관련 문제