Skip to content

Commit c8101f8

Browse files
committed
Remove host name in R2DBC's embedded H2 url
Closes gh-25560
1 parent 3e9341f commit c8101f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/r2dbc/EmbeddedDatabaseConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@ public enum EmbeddedDatabaseConnection {
3737
* H2 Database Connection.
3838
*/
3939
H2("H2", "io.r2dbc.h2.H2ConnectionFactoryProvider",
40-
"r2dbc:h2:mem://in-memory/%s?options=DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE");
40+
"r2dbc:h2:mem:///%s?options=DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE");
4141

4242
private final String type;
4343

0 commit comments

Comments
 (0)