Reintroduce avro wildcard types in schema registry sample

See this issue in Spring Cloud Function: https://github.com/spring-cloud/spring-cloud-function/issues/611
This commit is contained in:
Soby Chacko
2020-11-20 16:55:29 -05:00
parent 22ade85c68
commit e20a22452d
4 changed files with 16 additions and 2 deletions

View File

@@ -34,6 +34,11 @@
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-context</artifactId>
<version>3.0.12.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>

View File

@@ -3,7 +3,7 @@ spring:
stream:
bindings:
supplier-out-0:
contentType: application/+avro
contentType: application/*+avro
destination: sensor-topic
schema-registry-client:
endpoint: http://localhost:8990

View File

@@ -34,6 +34,11 @@
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-context</artifactId>
<version>3.0.12.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
@@ -47,6 +52,10 @@
<artifactId>avro</artifactId>
<version>${avro.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>

View File

@@ -3,7 +3,7 @@ spring:
stream:
bindings:
supplier-out-0:
contentType: application/+avro
contentType: application/*+avro
destination: sensor-topic
schema-registry-client:
endpoint: http://localhost:8990