baolei 2 هفته پیش
والد
کامیت
facc7e40fc
3فایلهای تغییر یافته به همراه8 افزوده شده و 5 حذف شده
  1. 5 2
      pom.xml
  2. 2 2
      src/main/resources/application-druid.yml
  3. 1 1
      src/main/resources/mybatis/tool/GenTableMapper.xml

+ 5 - 2
pom.xml

@@ -97,9 +97,12 @@
         </dependency>
 
         <!-- Mysql驱动包 -->
+        <!-- MySQL 8 官方驱动,新版 -->
         <dependency>
-            <groupId>mysql</groupId>
-            <artifactId>mysql-connector-java</artifactId>
+            <groupId>com.mysql</groupId>
+            <artifactId>mysql-connector-j</artifactId>
+            <version>8.0.33</version>
+            <scope>runtime</scope>
         </dependency>
 
         <!-- SpringBoot集成mybatis框架 -->

+ 2 - 2
src/main/resources/application-druid.yml

@@ -6,9 +6,9 @@ spring:
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://47.98.241.144:3306/goer?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
+                url: jdbc:mysql://47.98.241.144:3306/goer?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
                 username: root
-                password: $TyH69i4EEG^om!!
+                password: "mS5k2G7zQ9cE4bR6x"
             # 从库数据源
             slave:
                 # 从数据源开关/默认关闭

+ 1 - 1
src/main/resources/mybatis/tool/GenTableMapper.xml

@@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	<select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult">
 		select table_name, table_comment, create_time, update_time from information_schema.tables
 		where table_schema = (select database())
-		AND table_name NOT LIKE 'QRTZ_%' AND table_name NOT LIKE 'gen_%'
+		AND table_name NOT LIKE 'qrtz%' AND table_name NOT LIKE 'gen_%'
 		AND table_name NOT IN (select table_name from gen_table)
 		<if test="tableName != null and tableName != ''">
 			AND lower(table_name) like lower(concat('%', #{tableName}, '%'))