如果想使用KingbaseES数据库,则需要完成如下步骤:
- 执行db/postgresql/maku.sql文件,初始化KingbaseES数据库
- 修改数据库配置,如:开发环境则修改
application-dev.yml
文件,如下所示:
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:54321/maku_boot?currentSchema=public,SYS_CATALOG
username: system
password: 12345678ab
- 完成上面2步骤后,再启动项目即可