Skip to main content

Posts

Showing posts from 2019

Spring WebFlux, Boot 2 and reactive mysql

In this post I will describe an web application which contains of: Spring WebFlux, Spring Boot 2, Mysql r2dbc and a lot of fun. My set up: Ubuntu 18.04 64-bit Java 8 (Oracle) docker 18.09.7 mysql  Ver 8.0.17 for Linux on x86_64 (MySQL Community Server - GPL) Next, Mysql runs as a docker container with exposed ports, I could connect to it outside. I've created a schema and inserted data using *.sql scripts. One for creation if exists and the second one for insertion. Next, created a gradle project with the following dependencies: buildscript { ext { springFrameworkVersion = '5.2.0.M3' springBootVersion = '2.1.9.RELEASE' springDataR2dbc = '1.0.0.RC1' applicationName = 'be-board-allocator' junitFive = '5.5.2' } dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.1.9.RE