spring-boot - 如何在 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..........
解决方案
上面的第一个链接说,
添加您的 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 设置的帮助,您可能需要参考这篇文章
推荐阅读
- php - 为什么要在 PHP 中使用“use”关键字来导入核心标识符?
- php - PHP 版本从 5.6 升级到 7.4 导致 mbstring.func_overload = 6 出现问题
- php - 如何使 Emmet 在 VSCode 的 php 文件中的引号内工作?
- javascript - 将 Javascript 变量传递给 Django 标签
- android - 以编程方式检测 Samsung KNOX 支持的设备
- java - 原因:无效的条目大小(预期为 29338,但得到了 26629 字节)
- r - 单个通道的显着图?
- angular - 在拖放中获取项目名称
- javascript - 使用 html Mailto 向多个收件人发送邮件:不工作 c#
- javascript - React 和 Slate 的 TypeScript 错误:“IntrinsicAttributes”类型上不存在属性“renderElement”