Need Liquibase® support? Liquibase Pro is now available! Try it out free.
2018 XML Announcement

Spring Integration

Liquibase can be run in a Spring environment by declaring a liquibase.spring.SpringLiquibase bean.


<bean id="liquibase" class="liquibase.integration.spring.SpringLiquibase">
      <property name="dataSource" ref="myDataSource" />
      <property name="changeLog" value="classpath:db-changelog.xml" />

      contexts specifies the runtime contexts to use.
      <property name="contexts" value="test, production" />

Available Attributes

  • beanName
  • changeLog
  • contexts
  • dataSource
  • defaultSchema
  • dropFirst since 2.0.2
  • parameters
  • resourceLoader

Missing, incomplete or wrong information? Please send a pull request