Skip to content

Commit 906a165

Browse files
committed
Added an action proposal relevant for increasingly popular Testcontainers projects
1 parent 4300ee9 commit 906a165

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceBeanCreationFailureAnalyzer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ private String getAction(DataSourceBeanCreationException cause) {
6666
StringBuilder action = new StringBuilder();
6767
action.append(String.format("Consider the following:%n"));
6868
if (EmbeddedDatabaseConnection.NONE == cause.getConnection()) {
69+
action.append(String
70+
.format("\tIf you're using Testcontainers to set up your development datasource, consider starting the application from the test sources instead.%n"));
6971
action.append(String
7072
.format("\tIf you want an embedded database (H2, HSQL or Derby), please put it on the classpath.%n"));
7173
}

0 commit comments

Comments
 (0)