Spring Boot and R2DBC
This commit is contained in:
parent
d660390f22
commit
970dd965cc
|
@ -2,10 +2,6 @@ package com.baeldung.r2dbc.configuration;
|
||||||
|
|
||||||
import io.r2dbc.h2.H2ConnectionConfiguration;
|
import io.r2dbc.h2.H2ConnectionConfiguration;
|
||||||
import io.r2dbc.h2.H2ConnectionFactory;
|
import io.r2dbc.h2.H2ConnectionFactory;
|
||||||
import io.r2dbc.spi.Connection;
|
|
||||||
import io.r2dbc.spi.ConnectionFactory;
|
|
||||||
import io.r2dbc.spi.ConnectionFactoryMetadata;
|
|
||||||
import org.reactivestreams.Publisher;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.data.r2dbc.config.AbstractR2dbcConfiguration;
|
import org.springframework.data.r2dbc.config.AbstractR2dbcConfiguration;
|
||||||
|
|
|
@ -52,6 +52,7 @@ public class R2dbcApplicationRdbcTemplateIntegrationTest {
|
||||||
|
|
||||||
insertPlayers();
|
insertPlayers();
|
||||||
|
|
||||||
|
|
||||||
template.select(Player.class)
|
template.select(Player.class)
|
||||||
.matching(query(where("name").is("Saka")))
|
.matching(query(where("name").is("Saka")))
|
||||||
.one()
|
.one()
|
||||||
|
|
Loading…
Reference in New Issue