Skip to content

Commit 8be1ebb

Browse files
author
heavyrian2012
committed
添加kingbase数据库的依赖是示例配置
1 parent 917c1fe commit 8be1ebb

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

config/application.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ spring.jpa.hibernate.ddl-auto=update
4949
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.DmDialect
5050
##*********************** 达梦 DB end ***************************
5151

52+
53+
# 金仓数据库 KingbaseES 配置
54+
# 请先在 KingbaseES 中创建数据库,例如:CREATE DATABASE appdata;
55+
##*********************** kingbase DB begin *************************
56+
#spring.datasource.url=jdbc:kingbase8://localhost:54321/appdata
57+
#spring.datasource.username=system
58+
#spring.datasource.password=123456
59+
#spring.datasource.driver-class-name=com.kingbase8.Driver
60+
#spring.jpa.database-platform=org.hibernate.dialect.Kingbase8Dialect
61+
#spring.jpa.hibernate.ddl-auto=update
62+
##*********************** kingbase DB end ***************************
63+
64+
5265
# ldap登录的配置
5366
## 是否开启ldap登录。开启后普通密码登录就失效了,只能用ldap登录。另外客户端代码也需要修改一下,去掉短信登录和修改密码等相关代码。
5467
ldap.enable=false

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@
8181
<systemPath>${project.basedir}/src/lib/DmDialect-for-hibernate5.4.jar</systemPath>
8282
</dependency>
8383

84+
<dependency>
85+
<groupId>cn.com.kingbase</groupId>
86+
<artifactId>kingbase8</artifactId>
87+
<version>8.6.1</version>
88+
</dependency>
89+
90+
<dependency>
91+
<groupId>cn.com.kingbase</groupId>
92+
<artifactId>KesDialect-for-hibernate4</artifactId>
93+
<version>1.0.0</version>
94+
</dependency>
95+
8496
<dependency>
8597
<groupId>com.google.code.gson</groupId>
8698
<artifactId>gson</artifactId>

0 commit comments

Comments
 (0)