This repository contains a simple example Spring Boot 3 web server using reactive API's with Kotlin Coroutines.
- Spring Webflux (reactive REST endpoints)
- Spring Data R2DBC (reactive database access)
- H2 in memory database
- Spring Native GraalVM builds
- Routes defined with Kotlin DSL (
RouteConfig.kt) - KotlinX Serialization
- GET
/api/v1/news-> List all news entries in database - GET
/api/v1/news/{id}-> Get specific news entry by id from database - POST
/api/v1/news-> Add news entry to database
- GraalVM installed and set as environment variable
JAVA_HOME(sdkman easiest variant) - native-image installed (use
gu) and reachable
- Build using
./gradlew :nativeCompile - Run using
./build/native/nativeCompile/spring-boot-kotlin-reactive-example
- Native tests not working due to mock dependencies