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 ...
随机推荐
- Dapper - .Net 环境下一个简单对象映射的框架
本文内容 特点 性能 参数化的查询 List 支持 缓存和非缓存的 readers 多个映射 多个结果 存储过程 Ansi Strings 和 varchar 限制和注意事项 Dapper 能运行在我 ...
- 程序员需要经纪人吗?10x 最好的程序员其生产力相当于同行的 10 倍~
原文地址 10x 起源于技术界一个流行的说法,即最好的程序员是超级明星,其生产力相当于同行的 10 倍: Google 园区以好玩的设施闻名:小憩舱.球坑.按摩.干洗.随便吃到饱的自助餐.(为了拍人才 ...
- jQuery动画animate方法使用介绍
用于创建自定义动画的函数. 返回值:jQuery animate(params, [duration], [easing], [callback]) 如果使用的是“hide”.“show”或“togg ...
- 让.aspx同样实现.ashx文件的功能: IHttpHandler
我们需要一个能够调用该处理程序的入口点.在此上下文中,该处理程序代码的入口点只不过是一个HTTP终点——即,一个公共的URL.该URL必须有一个惟一的名称,使IIS和ASP.NET运行库能够把它映射到 ...
- robot framework-databaselibaray库使用(python)
公司做项目用到了databaselibaray,刚开始使用时碰到了很多问题,网上也查阅了很多资料终于是可以用了,现在整理记录下来,有需要的同学可随意使用: 另,本文主要是databaselibaray ...
- Selenium2(webdriver)入门之TestNG的安装与简单使用
上一篇已经搭建好了Eclipse+selenium2的环境,这一篇主要记录下TestNG的使用. 一.在Eclipse中安装TestNG 1.打开eclipse-->help-->Inst ...
- innosetup完整脚本
#define MyAppName "Somarto"#define MyAppVersion "1.0.0"#define MyAppPublisher &q ...
- SQL Server排序规则不一致 - Collate Database_Default
http://www.cnblogs.com/chencidi/archive/2014/07/02/3820386.html 使用多库查询时会出现排序规则冲突的问题 解决办法 在字段后面添加Coll ...
- webbrowser载入地图网页出现脚本错误解决
对于这个问题.我整整花了一上午的时间来解决,网上关于此问题的解决差点儿找不到,于是我就尽能够能的从网上相关问题的答案中获取些灵感.功夫不负有心人.最终通过这些灵感的积累我最终攻克了此问题. 首先让我们 ...
- Java并发容器——ConcurrentSkipListMap和ConcurrentHashMap
一:ConcurrentSkipListMap TreeMap使用红黑树按照key的顺序(自然顺序.自定义顺序)来使得键值对有序存储,但是只能在单线程下安全使用:多线程下想要使键值对按照key的顺序来 ...