Skip to content

Commit

Permalink
Fix backend bootstrap error
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
  • Loading branch information
glours committed Aug 14, 2020
1 parent dcdb55e commit 8e35c3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sparkjava-mysql/backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-core</artifactId>
<version>2.8.0</version>
<version>2.9.2</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sparkjava-mysql/backend/src/main/java/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static void recreateTable(Connection conn) throws SQLException {
private static Connection connect() throws Exception {
for (int i = 0; i < 60; i++) {
try {
return DriverManager.getConnection("jdbc:mysql://db/example?useSSL=false", "root", Files.lines(Paths.get("/run/secrets/db-password")).findFirst().get());
return DriverManager.getConnection("jdbc:mysql://db/example?allowPublicKeyRetrieval=true&useSSL=false", "root", Files.lines(Paths.get("/run/secrets/db-password")).findFirst().get());
} catch (CommunicationsException ex) {
Thread.sleep(1000L);
continue;
Expand Down
2 changes: 1 addition & 1 deletion sparkjava/sparkjava/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-core</artifactId>
<version>2.8.0</version>
<version>2.9.2</version>
</dependency>

</dependencies>
Expand Down

0 comments on commit 8e35c3b

Please sign in to comment.