【问题标题】:How can I setup the pro license key for liquibase in spring boot gradle?如何在 Spring Boot gradle 中设置 liquibase 的 pro 许可证密钥?
【发布时间】:2021-07-14 04:36:10
【问题描述】:

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

我的项目结构

资源

-----> 数据库

----------->更新日志

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

application.properties

在主 yaml 文件中

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

application.properties

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

liquibase.properties

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

【问题讨论】:

    标签: spring-boot gradle java-8 liquibase


    【解决方案1】:

    您可以参考this linkthis link 以获得有关您的问题的帮助。

    上面的第一个链接说,

    添加您的 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 设置的帮助,您可能需要参考 this post

    【讨论】:

      猜你喜欢
      • 2019-03-02
      • 1970-01-01
      • 2022-01-09
      • 2021-03-11
      • 1970-01-01
      • 2021-10-17
      • 2018-11-29
      • 2010-09-20
      • 2018-07-17
      相关资源
      最近更新 更多