Skip to main content

Posts

Showing posts with the label Flyway

Upgrading Lead Microservice - Use MariaDB and Flyway with Spring Boot

So far I have been using an in-memory H2 database or Mockito for testing the lead microservice. To make the transition towards using the Spring Cloud Config server, I need to upgrade the micro-application to use MariaDB . I will be adding the configuration in the application.yml  the file which in the subsequent post will move over to the config server store. I will also be using Flyway to make it easy to maintain the database schema changes in future. I will use this post to introduce Flyway in the mix. Spring Boot also provides first class integration with Flyway. I am using Flyway as its really quick and easy to get started, minimal learning curve (no DSL) and I am comfortable with it having used it in the past. Assumptions MariaDB 10 is installed Basic familiarity with Flyway Heidi SQL client is installed. Step 1 - Update build.gradle to include the MariaDB JDBC and Flyway dependencies. Do not forget to do a Gradle refresh on your IDE (I am using STS 3.8.4 on...