1.依据厂商提供的jar包生成maven仓库资源,执行命令:
mvn install:install-file -DgroupId=com.kingbase8 -DartifactId=kingbase8 -Dversion=8.2.0 -Dpackaging=jar -Dfile=kingbase8-8.2.0.jar
2.pom.xml文件添加依赖
<dependency>
<groupId>com.kingbase8</groupId>
<artifactId>kingbase8</artifactId>
<version>8.2.0</version>
</dependency>
3.application.yml配置数据源
spring:
datasource:
druid:
stat-view-servlet:
enabled: true
loginUsername: admin
loginPassword: 123456
allow:
web-stat-filter:
enabled: true
dynamic:
druid:
filters: stat,slf4j
datasource:
master:
url: jdbc:kingbase8://192.168.132.11:54321/jeecg_boot
username: jeecg_boot
password: 1qazxc
driver-class-name: com.kingbase8.Driver