SpringBoot配置属性之Migration
SpringBoot配置属性系列
另外附上个人关于springboot的一些文章
序
SpringBoot支持了两种数据库迁移工具,一个是flyway,一个是liquibase。其本身也支持sql script,在初始化数据源之后执行指定的脚本。
flyway
flyway.baseline-description
对执行迁移时基准版本的描述.flyway.baseline-on-migrate
当迁移时发现目标schema非空,而且带有没有元数据的表时,是否自动执行基准迁移,默认false.flyway.baseline-version
开始执行基准迁移时对现有的schema的版本打标签,默认值为1.flyway.check-location
检查迁移脚本的位置是否存在,默认false.flyway.clean-on-validation-error
当发现校验错误时是否自动调用clean,默认false.flyway.enabled
是否开启flywary,默认true.flyway.encoding
设置迁移时的编码,默认UTF-8.flyway.ignore-failed-future-migration
当读取元数据表时是否忽略错误的迁移,默认false.flyway.init-sqls
当初始化好连接时要执行的SQL.flyway.locations
迁移脚本的位置,默认db/migration.flyway.out-of-order
是否允许无序的迁移,默认false.flyway.password
目标数据库的密码.flyway.placeholder-prefix
设置每个placeholder的前缀,默认${.flyway.placeholder-replacement
placeholders是否要被替换,默认true.flyway.placeholder-suffix
设置每个placeholder的后缀,默认}.flyway.placeholders.[placeholder name]
设置placeholder的valueflyway.schemas
设定需要flywary迁移的schema,大小写敏感,默认为连接默认的schema.flyway.sql-migration-prefix
迁移文件的前缀,默认为V.flyway.sql-migration-separator
迁移脚本的文件名分隔符,默认__flyway.sql-migration-suffix
迁移脚本的后缀,默认为.sqlflyway.table
flyway使用的元数据表名,默认为schema_versionflyway.target
迁移时使用的目标版本,默认为latest versionflyway.url
迁移时使用的JDBC URL,如果没有指定的话,将使用配置的主数据源flyway.user
迁移数据库的用户名flyway.validate-on-migrate
迁移时是否校验,默认为true.
liquibase
liquibase.change-log
Change log 配置文件的路径,默认值为classpath:/db/changelog/db.changelog-master.yamlliquibase.check-change-log-location
是否坚持change log的位置是否存在,默认为true.liquibase.contexts
逗号分隔的运行时context列表.liquibase.default-schema
默认的schema.liquibase.drop-first
是否首先drop schema,默认为falseliquibase.enabled
是否开启liquibase,默认为true.liquibase.password
目标数据库密码liquibase.url
要迁移的JDBC URL,如果没有指定的话,将使用配置的主数据源.liquibase.user
目标数据用户名
SpringBoot配置属性之Migration的更多相关文章
- SpringBoot配置属性之Server
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性转载地址
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之其他
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之Security
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之MQ
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之NOSQL
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之MVC
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性二
server配置 server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.e ...
- SpringBoot配置属性之Server参数
server配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.ex ...
随机推荐
- Eclipse Maven项目报错3之找不到配置文件spring-servlet-context.xml
一.具体错误如下图所示 根据文字提示可以看出是这个文件找不到,但是我去项目的这个目录找了,这个文件确实存在,那么是什么问题呢 二.解决问题 原因分析(来自网上) 代码编译的过程,是一个自动生成相应编译 ...
- 不可不知的Python模块: collections
原文:http://www.zlovezl.cn/articles/collections-in-python/ Python作为一个“内置电池”的编程语言,标准库里面拥有非常多好用的模块.比如今天想 ...
- MFC自定义控件如何向父窗口发送自定义消息
自定义了一个控件 class CHtmlEditCtrlEx : public CHtmlEditCtrl 想在这个控件接收到Ctrl+V键盘消息的时候,向该控件所在的窗口发送一个自定义消息.具体 ...
- HDU 1541 Stars (线段树)
Problem Description Astronomers often examine star maps where stars are represented by points on ...
- echart 图例设置自定义图标?
option = { legend: { orient: 'horizontal', // 'vertical' x: 'right', // 'center' | 'left' | {number} ...
- C#.NET常见问题(FAQ)-如何让Listbox支持多选
把SelectionMode改成MultiExtended 更多教学视频和资料下载,欢迎关注以下信息: 我的优酷空间: http://i.youku.com/acetaohai123 我的在线 ...
- android中RecyclerView控件实现长按弹出PopupMenu菜单功能
之前写过一篇文章:android中实现简单的聊天功能 现在是在之前功能的基础上,添加一个长按聊天记录,删除对应聊天记录的功能 RecyclerView控件,没有对应的长按事件,我们需要自己手工添加,修 ...
- CSS 之 div中文字超出时自动换行
在开发中很容易遇到div中文字超出的问题,在此总结以下方法: 1. white-space :属性设置如何处理元素内的空白.这个属性声明建立布局过程中如何处理元素中的空白符.所有浏览器都支 ...
- Android 在闹钟开机时,如何解决开机动画没有播完就进入Launcher M
前言 欢迎大家我分享和推荐好用的代码段~~ 声明 欢迎转载,但请保留文章原始出处: CSDN:http://www.csdn.net ...
- 微软BI 之SSAS 系列 - 在SQL Server 2012 中开发 Analysis Services Multidimensional Project
SQL Server 2012 中提供了开发 SSAS 项目的两种模型,一种是新增加的 Tabular Model 表格模型,另一种就是原始的 Multidimensional Model 多维模型. ...