#296 - Rename DatabaseClient bean to r2dbcDatabaseClient.
This commit is contained in:
@@ -100,7 +100,7 @@ public abstract class AbstractR2dbcConfiguration implements ApplicationContextAw
|
||||
* @return must not be {@literal null}.
|
||||
* @throws IllegalArgumentException if any of the required args is {@literal null}.
|
||||
*/
|
||||
@Bean
|
||||
@Bean({ "r2dbcDatabaseClient", "databaseClient" })
|
||||
public DatabaseClient databaseClient(ReactiveDataAccessStrategy dataAccessStrategy,
|
||||
R2dbcExceptionTranslator exceptionTranslator) {
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ public @interface EnableR2dbcRepositories {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
String databaseClientRef() default "databaseClient";
|
||||
String databaseClientRef() default "r2dbcDatabaseClient";
|
||||
|
||||
/**
|
||||
* Configures whether nested repository-interfaces (e.g. defined as inner classes) should be discovered by the
|
||||
|
||||
@@ -45,7 +45,7 @@ public class R2dbcRepositoriesRegistrarTests {
|
||||
static class Config {
|
||||
|
||||
@Bean
|
||||
public DatabaseClient databaseClient() {
|
||||
public DatabaseClient r2dbcDatabaseClient() {
|
||||
return mock(DatabaseClient.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user