首页 > 解决方案 > 如何在 Spring Boot gradle 中设置 liquibase 的 pro 许可证密钥?

问题描述

我找不到需要在 spring boot Gradle 项目中添加 liquibase pro 密钥的位置。下面是我的项目结构。请协助我放置许可证密钥。

我的项目结构

资源

-----> 数据库

------------>更改日志

  ----------->db.changelog-master.yaml
  ----------->db.changelog-1.0.yaml
  ----------->liquibase.properties

应用程序属性

在主 yaml 文件中

databaseChangeLog:
  - include:
      file: db/changelog/db.changelog-1.0.yaml

应用程序属性

spring.liquibase.enabled=true
logging.level.liquibase=debug

liquibase.properties

liquibaseProLicenseKey: ABww..........

标签: spring-bootgradlejava-8liquibase

解决方案


您可以参考此链接此链接以获得有关您的问题的一些帮助。

上面的第一个链接说,

添加您的 Liquibase Pro 许可证密钥

在下面的示例中,要添加您的 Liquibase Pro 许可证密钥,只需将 liquibaseProLicenseKey: 属性添加到您的 liquibase.properties 文件并添加您的许可证密钥。然后保存您的文件。

changeLogFile: ../path/to/file/dbchangelog.xml
driver: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@192.168.0.22:1521/orcl
username: PRO
password: password
referenceDriver: oracle.jdbc.OracleDriver
referenceUrl: jdbc:oracle:thin:@192.168.0.22:1521/orcl
referencePassword: password
liquibaseProLicenseKey: aeioufakekey32aeioufakekey785463214
classpath: ../path/to/file/ojdbc6-11.2.0.3.0.jar

有关 Gradle Spring Boot 中 liquibase 设置的帮助,您可能需要参考这篇文章


推荐阅读