第一步:添加连接驱动包以及hibernate方言包
驱动包下载链接:GBase8sV8.8连接驱动包.zip-其它文档类资源-CSDN下载
第二步:配置连接信息
spring:
profiles: development-gbase
datasource:
name: gbaseserver
sql-script-encoding: utf-8
driver-class-name: com.gbasedbt.jdbc.Driver
url: jdbc:gbasedbt-sqli://127.0.0.1:9088/eia_pro:GBASEDBTSERVER=gbaseserver;DB_LOCALE=zh_cn.utf8;CLIENT_LOCALE=zh_cn.utf8;IFX_LOCK_MODE_WAIT=30
username: gbasedbt
password: mt.gbbase.!@#$
jpa:
open-in-view: false
show-sql: true
hibernate:
ddl-auto: none # Hibernate ddl auto (none, create, create-drop, update, validate)
properties:
hibernate.dialect: org.hibernate.dialect.GBasedbtDialect
hibernate.format_sql: true
hibernate.max_fetch_depth: 1
hibernate.generate_statistics: true
hibernate.use_sql_comments: false