Skip to content

Spring Boot 2.3.2 - WebFlux (functional style) - R2DBC H2 - Kotlin (coroutines) - (with tests that can use Testcontainers MySQL or Postgres)

Notifications You must be signed in to change notification settings

razvn/webflux-r2dbc-kotlin

Repository files navigation

POC WebFlux-R2DBC H2-Kotlin

Test project for Spring Boot 2.3.2/Kotlin with coroutines integration and R2DBC repositories. Testcontainers (MySql or PostgerSql) can be used for testing.

Base project

stat.spring.io

  • gradle (kotlin)
  • kotlin
  • webflux
  • spring-data-r2dbc
  • h2
  • actuator

Versions:

  • Spring Boot 2.3.2
  • Gradle 6.5.1
  • Kotlin 1.3.72
  • MockK 1.10.0
  • Testcontainers (Mysql et Postgres) 1.14.3

Extra dependencies

testImplementation("io.mockk:mockk:1.10.0")
testImplementation("org.testcontainers:postgresql:1.14.3")
testImplementation("org.testcontainers:mysql:1.14.3")

Remarks

  • Unit tests and Integration tests are including (100% coverage :))
  • Testcontainers can be used for tests with either MySQL or PostgreSQL just set the test application.properties property: app.test.testcontainer.db to either mysql or postgres (anything else will use h2)

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

About

Spring Boot 2.3.2 - WebFlux (functional style) - R2DBC H2 - Kotlin (coroutines) - (with tests that can use Testcontainers MySQL or Postgres)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published