Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Latest commit

 

History

History
53 lines (36 loc) · 2.01 KB

readme.md

File metadata and controls

53 lines (36 loc) · 2.01 KB

Getting Started

First Steps

Launch the application

Run the CustomerServiceApplication class directly or use Maven:

mvn spring-boot:run -Dspring-boot.run.profiles=dev

or build the JAR and run

mvn package
java -jar -Dspring.profiles.active=dev target/customer-service-spring-data-0.0.1-SNAPSHOT.jar

Liquibase

We can run the application locally using the liquibase profile. In contrast to the dev profile, this will disable automatic schema generation by Hibernate and enable Liquibase ChangeLog Activation. This will connect to another local database, so we have both databases, one for each profile.

Changelog Generation

We can use the liquibase-maven-plugin:generateChangeLog goal to initially generate a sample changelog from the database that was created by Hibernate. Therefore, we need to activate the liquibase Maven profile.

mvn liquibase:generateChangeLog -Pliquibase

Further

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely: