Translations of this page?:

Spring Integration

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

Example

<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" />
 </bean>

Available Attributes

  • beanName
  • resourceLoader
  • dataSource
  • changeLog
  • contexts
  • parameters
  • defaultSchema
  • dropFirst since 2.0.2
Receive Liquibase Announcements
* indicates required
Page Actions
Wiki Actions
User Actions
Submit This Story
 
manual/spring.txt · Last modified: 2011/11/09 07:53 by nvoxland