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 ...
随机推荐
- Robot Framework + Selenium library + IEDriver环境搭建
转载:https://www.cnblogs.com/Ming8006/p/4998492.html#c.d 目录: 1 安装文件准备2 Robot框架结构3 环境搭建 3.1 安装Python ...
- HTML5画布生成的3D飞船舰队效果
在线演示 本地下载 使用HTML5画布2D来模拟3D的空间效果,生成舰队飞行效果,了解如何开发,请阅读下面代码相关“轻视频”: HTML5画布模拟生成3D的舰队飞行效果
- iOS 里RGB 配色 UIColor colorWithRed
//比如rgb 色值为73. 148 .230 那么ios 里面要在后面加.0f 再除以255 [bline setBackgroundColor:[UIColor colorWithRed:73.0 ...
- Google Chrome Resize Plugin
https://chrome.google.com/webstore/detail/window-resizer/kkelicaakdanhinjdeammmilcgefonfh
- pager-taglib分页处理的使用
pager-taglib是java中一个用于分页的小的框架.下面简单介绍一下它的具体使用. 一.环境的搭建: 将pager-taglib-2.0.war包拷贝到Tomcat的webapps下.启动To ...
- ubuntu下配置华为交换机s2016
因为笔记本没有RS232口,只有装有ubuntu的服务器上有RS232口,于是登录ubuntu 配置连接. 这里使用minicom,当然,Ubuntu源还有个图形界面的gtkterm, cutecom ...
- 利用exif.js解决ios或Android手机上传竖拍照片旋转90度问题
html5+canvas进行移动端手机照片上传时,发现ios手机上传竖拍照片会逆时针旋转90度,横拍照片无此问题:Android手机没这个问题. 因此解决这个问题的思路是:获取到照片拍摄的方向角,对非 ...
- C++ 第七课 标准 C I/O
clearerr() 清除错误 fclose() 关闭一个文件 feof() 如果到达文件尾(end-of-file)返回"True"(真) ferror() 检查一个文件错误 f ...
- Vue为什么没有templateUrl
Why Vue.js doesn't support templateURL Vue.js为什么不支持templateUrl模式 原因 templateUrl使用ajax的方式在运行时加载templa ...
- Python学习笔记_05:使用Flask+MySQL实现用户登陆注册以及增删查改操作
前言:本文代码参考自两篇英文博客,具体来源点击文末代码链接中文档说明. (PS:代码运行Python版本为2.7.14) 运行效果: 首页: 注册页面: 登陆界面: 管理员登陆后界面: 添加.删除.修 ...