diff --git a/ktg-admin/lib/DmDialect-for-hibernate5.4.jar b/ktg-admin/lib/DmDialect-for-hibernate5.4.jar new file mode 100644 index 0000000..f5eb7a4 Binary files /dev/null and b/ktg-admin/lib/DmDialect-for-hibernate5.4.jar differ diff --git a/ktg-admin/lib/DmJdbcDriver18.jar b/ktg-admin/lib/DmJdbcDriver18.jar new file mode 100644 index 0000000..7a08f47 Binary files /dev/null and b/ktg-admin/lib/DmJdbcDriver18.jar differ diff --git a/ktg-admin/pom.xml b/ktg-admin/pom.xml index e108f1a..ceeef73 100644 --- a/ktg-admin/pom.xml +++ b/ktg-admin/pom.xml @@ -67,6 +67,21 @@ ktg-mes + + + com.dm + DmJdbcDriver + 1.8 + system + ${basedir}/lib/DmJdbcDriver18.jar + + + com.dm.dialect + hibernate5 + 5.4 + system + ${basedir}/lib/DmDialect-for-hibernate5.4.jar + diff --git a/ktg-admin/src/main/resources/application-druid.yml b/ktg-admin/src/main/resources/application-druid.yml index 33f0ace..7bf5910 100644 --- a/ktg-admin/src/main/resources/application-druid.yml +++ b/ktg-admin/src/main/resources/application-druid.yml @@ -2,13 +2,13 @@ spring: datasource: type: com.alibaba.druid.pool.DruidDataSource - driverClassName: com.mysql.cj.jdbc.Driver + driverClassName: dm.jdbc.driver.DmDriver druid: # 主库数据源 master: - url: jdbc:mysql://192.168.100.106:3306/j2eedb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - username: root - password: 123456 + url: jdbc:dm://localhost:5236/CS_HF_WMS?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: SYSDBA + password: SYSDBA # 从库数据源 slave: # 从数据源开关/默认关闭