From c8101f8c9b4f711482f1e3b6ec0e16d214de0b69 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 10 Mar 2021 13:22:23 +0100 Subject: [PATCH] Remove host name in R2DBC's embedded H2 url Closes gh-25560 --- .../boot/autoconfigure/r2dbc/EmbeddedDatabaseConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/r2dbc/EmbeddedDatabaseConnection.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/r2dbc/EmbeddedDatabaseConnection.java index 1b4fc1e362..8637d74a18 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/r2dbc/EmbeddedDatabaseConnection.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/r2dbc/EmbeddedDatabaseConnection.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ public enum EmbeddedDatabaseConnection { * H2 Database Connection. */ H2("H2", "io.r2dbc.h2.H2ConnectionFactoryProvider", - "r2dbc:h2:mem://in-memory/%s?options=DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"); + "r2dbc:h2:mem:///%s?options=DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"); private final String type;