Skip to content

Add R2DBC Getting Started Guide #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Upgrade to Boot 2.2.2 and Boot R2DBC 0.1.0.M3
  • Loading branch information
mp911de committed Dec 6, 2019
commit c4d77ec73e0f12722bbb247cc36822139509ed5c
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:spring_version: current
:spring_boot_version: 2.2.1.RELEASE
:spring_boot_version: 2.2.2.RELEASE
:toc:
:icons: font
:source-highlighter: prettify
Expand Down
6 changes: 3 additions & 3 deletions complete/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.2.1.RELEASE'
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
Expand All @@ -15,7 +15,7 @@ repositories {

dependencies {
implementation 'org.springframework.boot.experimental:spring-boot-starter-data-r2dbc'
runtimeOnly 'com.h2database:h2:1.4.199'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'io.r2dbc:r2dbc-h2'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
Expand All @@ -26,7 +26,7 @@ dependencies {

dependencyManagement {
imports {
mavenBom 'org.springframework.boot.experimental:spring-boot-bom-r2dbc:0.1.0.M2'
mavenBom 'org.springframework.boot.experimental:spring-boot-bom-r2dbc:0.1.0.M3'
}
}

Expand Down
5 changes: 2 additions & 3 deletions complete/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.1.RELEASE</version>
<version>2.2.2.RELEASE</version>
</parent>

<dependencies>
Expand Down Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>org.springframework.boot.experimental</groupId>
<artifactId>spring-boot-bom-r2dbc</artifactId>
<version>0.1.0.M2</version>
<version>0.1.0.M3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -60,7 +60,6 @@

<properties>
<java.version>1.8</java.version>
<h2.version>1.4.199</h2.version>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.example.accessingdatar2dbc;

import org.springframework.data.r2dbc.repository.query.Query;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;

import reactor.core.publisher.Flux;

public interface CustomerRepository extends ReactiveCrudRepository<Customer, Long> {
Expand Down
4 changes: 2 additions & 2 deletions initial/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.2.1.RELEASE'
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
Expand All @@ -26,7 +26,7 @@ dependencies {

dependencyManagement {
imports {
mavenBom 'org.springframework.boot.experimental:spring-boot-bom-r2dbc:0.1.0.M2'
mavenBom 'org.springframework.boot.experimental:spring-boot-bom-r2dbc:0.1.0.M3'
}
}

Expand Down
4 changes: 2 additions & 2 deletions initial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.1.RELEASE</version>
<version>2.2.2.RELEASE</version>
</parent>

<dependencies>
Expand Down Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>org.springframework.boot.experimental</groupId>
<artifactId>spring-boot-bom-r2dbc</artifactId>
<version>0.1.0.M2</version>
<version>0.1.0.M3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down