From e63bccc234f1d81330d897c29b84fc7ae7b480df Mon Sep 17 00:00:00 2001 From: ycl Date: Fri, 17 Jan 2025 10:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20template/entrance/web/src/?= =?UTF-8?q?main/resources/application-online.properties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支持达梦数据库 --- .../src/main/resources/application-online.properties | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/template/entrance/web/src/main/resources/application-online.properties b/template/entrance/web/src/main/resources/application-online.properties index da89c06..f05bbdb 100644 --- a/template/entrance/web/src/main/resources/application-online.properties +++ b/template/entrance/web/src/main/resources/application-online.properties @@ -14,6 +14,8 @@ spring.datasource.url=jdbc:oracle:thin:@//{{ .dbHost }}:{{ .dbPort }}/ORCLCDB spring.datasource.url=jdbc:postgresql://{{ .dbHost }}:{{ .dbPort }}/{{ .dbDatabase }}?useUnicode=true&characterEncoding=utf8&autoReconnect=true&stringtype=unspecified {{- else if eq .dbType "mysql" }} spring.datasource.url=jdbc:mysql://${DB_HOST:10.0.2.201:3306}/${DB_DATABASE:hande_test}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai +{{- else if eq .dbType "dm"}} +spring.datasource.url=jdbc:dm://${ .dbHost }/${ .dbPort }/SYSDBA?characterEncoding=utf-8&serverTimezone=Asia/Shanghai {{- end }} spring.datasource.username=${DB_USER:hande_test_user} spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5} @@ -30,10 +32,14 @@ hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect {{- else if eq .dbType "oracle" }} spring.datasource.driver-class-name=oracle.jdbc.OracleDriver hibernate.dialect=org.hibernate.dialect.Oracle10gDialect -hibernate.show_sql=true vs.sqlmapper.dialect=oracle -vs.sqlmapper.showSql=true +{{- else if eq .dbType "dm" }} +spring.datasource.driver-class-name=dm.jdbc.driver.DmDriver +hibernate.dialect=org.hibernate.dialect.DmDialect +vs.sqlmapper.dialect=dm {{- end }} +hibernate.show_sql=true +vs.sqlmapper.showSql=true spring.datasource.tomcat.max-age=3600000 spring.jpa.open-in-view=false spring.redis.host=${REDIS_HOST:redis.byteawake.com}