Migration of Springboot Configuration Properties

Source: Internet
Author: User

Springboot Configuration Property Series

  • MVC of Springboot Configuration Properties

  • Springboot Configuration properties of the server

  • DataSource of Springboot Configuration Properties

  • Springboot Configuration Properties NoSQL

  • Springboot Configuration Properties of MQ

  • Security of Springboot Configuration properties

  • Migration of Springboot Configuration Properties

  • Springboot Configuration Properties of other

Also attach personal articles about Springboot

    • Springboot Past Life

    • Springboot Integrated MyBatis

    • The actuator of springboot four artifacts

    • The starter of springboot four artifacts

Order

Springboot supports two kinds of database migration tools, one is flyway and the other is liquibase. It also supports SQL script, which executes the specified script after initializing the data source.

Flyway
  • Flyway.baseline-description
    A description of the baseline version when the migration was performed.

  • Flyway.baseline-on-migrate
    If the target schema is not empty when migrating, and if there are tables with no metadata, the baseline migration is performed automatically, false by default.

  • Flyway.baseline-version
    Label the version of the existing schema when you begin the baseline migration, with a default value of 1.

  • Flyway.check-location
    Verify that the location of the migration script exists, false by default.

  • Flyway.clean-on-validation-error
    If clean is called automatically when a checksum error is found, the default is False.

  • Flyway.enabled
    If Flywary is turned on, the default is true.

  • Flyway.encoding
    Set the encoding for migration, default UTF-8.

  • Flyway.ignore-failed-future-migration
    Default False if error migration is ignored when reading the metadata table.

  • Flyway.init-sqls
    The SQL to execute when the connection is initialized.

  • Flyway.locations
    The location of the migration script, default db/migration.

  • Flyway.out-of-order
    Whether to allow unordered migrations, false by default.

  • Flyway.password
    The password for the target database.

  • Flyway.placeholder-prefix
    Sets the prefix for each placeholder, which is the default ${.

  • Flyway.placeholder-replacement
    Placeholders whether to be replaced, by default true.

  • Flyway.placeholder-suffix
    Set the suffix for each placeholder, default}.

  • Flyway.placeholders. [Placeholder name]
    Set the value of placeholder

  • Flyway.schemas
    Set the schema to be flywary migrated, case sensitive, default to connect default schema.

  • Flyway.sql-migration-prefix
    The prefix of the migrated file, which is v by default.

  • Flyway.sql-migration-separator
    The file name delimiter for the migration script, default __

  • Flyway.sql-migration-suffix
    The suffix of the migration script, which defaults to. sql

  • Flyway.table
    The metadata table name used by the Flyway, which defaults to Schema_version

  • Flyway.target
    Target version used when migrating, default to latest versions

  • Flyway.url
    The JDBC URL to use when migrating, and if not specified, uses the configured primary data source

  • Flyway.user
    User name for migrating database

  • Flyway.validate-on-migrate
    The default is true if the check is checked during migration.

Liquibase
      • Liquibase.change-log
        The path to the change log configuration file, the default value is Classpath:/db/changelog/db.changelog-master.yaml

      • Liquibase.check-change-log-location
        The default is true if the location of the change log is persisted.

      • Liquibase.contexts
        A comma-delimited list of run-time context.

      • Liquibase.default-schema
        The default schema.

      • Liquibase.drop-first
        Whether to drop the schema first, false by default

      • Liquibase.enabled
        If Liquibase is turned on, the default is true.

      • Liquibase.password
        Target Database Password

      • Liquibase.url
        The JDBC URL to migrate and, if not specified, uses the configured primary data source.

      • Liquibase.user
        Target data user name

Migration of Springboot Configuration Properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.