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 ...
随机推荐
- Everything常见问题及搜索技巧,附Demo
1 Everything 1.1 "Everything"是什么? "Everything"是一个运行于Windows系统,基于文件.文件夹名称的快速搜索引擎. ...
- Hibernate: No Session found for current thread
在Struts2+Hibernate+Srping项目中经常会遇到这种问题 我知道的一种情况是: Spring的事务配置中没有配置好异常出现处的路径 <aop:advisor pointcut= ...
- [Functional Programming] Create Reusable Functions with Partial Application in JavaScript
This lesson teaches you how arguments passed to a curried function allow us to store data in closure ...
- [Angular] Communicate with Angular Elements using Inputs and Events
In a real world scenario we obviously need to be able to communicate with an Angular Element embedde ...
- OpenGL ES 3.0之VertexAttributes,Vertex Arrays,and Buffer Objects(九)
顶点数据,也称为顶点属性,指每一个顶点数据.指能被用来描述每个顶点的数据,或能被所有顶点使用的常量值.例如你想绘制一个具有颜色的立方体三角形.你指定一个恒定的值用于三角形的所有三个顶点颜色.但三角形的 ...
- 在浏览器判断是否安装app,并打开相应的页面
1.代码功能: 判断手机/平板是否安装app 如果安装 则调用app的scheme,传入url当作参数,来做后续操作 如果没有安装 则跳转到app store/google play 下载app 2. ...
- h5画图表
折线: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8&q ...
- 在TQ2440开发板上ping 127.0.0.1不通
问题:在TQ2440上ping 127.0.0.1,提示错误 ping: sendto: Network is unreachable 解决方法:ifconfig lo 127.0.0.1 up ...
- strus2 struts.xml详解
<struts> <!-- 配置一个包:package --> <package name="demo1" extends="struts- ...
- [转]基本Guava工具
转自:http://www.cnblogs.com/renchunxiao/p/3661918.html?utm_source=tuicool 使用Joiner类 将任意字符串通过分隔符进行连接到一起 ...