springboot整合kingbase8
一、引入依赖
-
在项目下resource下新建lib包,放入jar到lib下
-
pom引入本地jar包
<dependency> <groupId>com.kingbase</groupId> <artifactId>kingbase8</artifactId> <version>8.2.0</version> <scope>system</scope> <systemPath>${basedir}/src/main/resources/lib/kingbase8-8.2.0.jar</systemPath> </dependency>
二、数据库配置
spring:
datasource:
driver-class-name: com.kingbase8.Driver
url: jdbc:kingbase8://xxxx:xxxx/xxxx?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: xxxx
password: xxxx