Skip to content

This repository contains a simple Java application. The application contains Spring Framework dependencies, including Spring Boot and Spring Data R2DBC.

License

Notifications You must be signed in to change notification settings

mariadb-developers/mariadb-connector-r2dbc-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

R2DBC Sample Application

This repository contains a simple (Apache Maven-based) Java application. The application contains Spring Framework dependencies, including Spring Boot and Spring Data R2DBC.

The purpose of this application is to demonstrate capabilities of MariaDB Connector/R2DBC and Spring Data R2DBC.

This application was used as the live demonstration in a MariaDB Webinar.

Preparing the database

In order to use this application you will need to first run the following SQL commands on a running instance of MariaDB.

CREATE DATABASE todo;

CREATE TABLE todo.tasks (
  id INT(11) unsigned NOT NULL AUTO_INCREMENT,
  description VARCHAR(500) NOT NULL,
  completed BOOLEAN NOT NULL DEFAULT 0,
  PRIMARY KEY (id)
);

Configuring the application

Next, make sure you you update the database connection settings in the application.properties file.

spring.r2dbc.url=r2dbc:mariadb://127.0.0.1:3306/todo
spring.r2dbc.username=app_user
spring.r2dbc.password=Password123!

Support and Contribution

Please feel free to submit PR's, issues or requests to this project project directly.

If you have any other questions, comments, or looking for more information on MariaDB please check out:

Or reach out to us diretly via:

License

License

About

This repository contains a simple Java application. The application contains Spring Framework dependencies, including Spring Boot and Spring Data R2DBC.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%