GH-214: Fix kinesis-produce-consume does not run

Fixes https://github.com/spring-cloud/spring-cloud-stream-samples/issues/214

* Use H2 as embedded DB
* Bump `spring-cloud-stream-binder-kinesis` to `2.2.0`
This commit is contained in:
Diego Toharia
2021-09-07 17:12:22 +02:00
committed by GitHub
parent 3387cd75d9
commit fa8d4a3d2f
2 changed files with 14 additions and 2 deletions

View File

@@ -37,7 +37,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kinesis</artifactId>
<version>2.0.2.BUILD-SNAPSHOT</version>
<version>2.2.0</version>
</dependency>
<dependency>
@@ -54,6 +54,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>

View File

@@ -25,7 +25,13 @@ spring:
content-type: application/json
function:
definition: processOrder;produceOrder
datasource:
url: jdbc:h2:mem:testdb
driverClassName: org.h2.Driver
username: sa
password: password
jpa:
database-platform: org.hibernate.dialect.H2Dialect
cloud:
aws: