Spring Boot and Liquidbase : how to change the default path and filename

Bookmark this on Hatena Bookmark
Share on LinkedIn

This article is a hint how to change the default path and name for the liquibase when you are using .




What is Liquibase ?

Liquibase logo

Liquibase is an open source database-independent library for tracking, managing and applying changes. It was started in 2006 to allow easier tracking of database changes, especially in an agile environment.

Basically, you define your database schema, the successive iterations and upgrades in changesets and liquibase will keep and maintain a database log and upgrade automatically your database instances.

What is ?

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.

It”s an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.

The default Spring Boot configuration

By default, Spring boot is looking for your changeset stored in your classpath. The path your changeset should be located is :


The choice is rather dubious. They are using yaml and the weird file extension yaml instead of yml. Most of Liquibase documentation is using XML.

I have been looking how to change this ugly property, and without rewriting my own Liquibase Spring Boot configuration bean.

Here is the trick :


If you are interested about articles , have a look there;


Share on LinkedIn