diff --git a/sparkjava-mysql/backend/pom.xml b/sparkjava-mysql/backend/pom.xml
index 111080f..ad429e0 100644
--- a/sparkjava-mysql/backend/pom.xml
+++ b/sparkjava-mysql/backend/pom.xml
@@ -40,7 +40,7 @@
com.sparkjava
spark-core
- 2.8.0
+ 2.9.2
diff --git a/sparkjava-mysql/backend/src/main/java/App.java b/sparkjava-mysql/backend/src/main/java/App.java
index 83cef38..73ec239 100755
--- a/sparkjava-mysql/backend/src/main/java/App.java
+++ b/sparkjava-mysql/backend/src/main/java/App.java
@@ -64,7 +64,7 @@ public class App {
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;
diff --git a/sparkjava/sparkjava/pom.xml b/sparkjava/sparkjava/pom.xml
index b172d3f..0dcc340 100755
--- a/sparkjava/sparkjava/pom.xml
+++ b/sparkjava/sparkjava/pom.xml
@@ -40,7 +40,7 @@
com.sparkjava
spark-core
- 2.8.0
+ 2.9.2