Spring Boot and R2DBC

This commit is contained in:
michaelin007 2024-01-31 19:40:03 +00:00
parent d660390f22
commit 970dd965cc
2 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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()