From c45c9e41ce7bf85cbd9876f9779798de842e1cbc Mon Sep 17 00:00:00 2001 From: huangkai Date: Wed, 11 Sep 2019 21:15:53 +0800 Subject: [PATCH] update --- .../src/main/java/com/hk/entity/ConnectionModel.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hk-mapping/src/main/java/com/hk/entity/ConnectionModel.java b/hk-mapping/src/main/java/com/hk/entity/ConnectionModel.java index fba55c9..1d4a410 100644 --- a/hk-mapping/src/main/java/com/hk/entity/ConnectionModel.java +++ b/hk-mapping/src/main/java/com/hk/entity/ConnectionModel.java @@ -32,5 +32,17 @@ public String getDriverName() { } } + public static class MySql8Connection extends ConnectionModel { + + public MySql8Connection(String jdbcUrl, String username, String password) { + super(jdbcUrl, username, password); + } + + @Override + public String getDriverName() { + return "com.mysql.cj.jdbc.Driver"; + } + } + }