Elca Spring Boot JPA Module

Description

The Elca Spring Boot JPA Module contains the necessary dependencies to integrate Spring Data JPA functionality into an existing project.

Prerequisites

How to use

  • Ensure that the Spring CLI is installed and available in your system's PATH: spring version
  • Add the ELCA catalog to the Spring CLI, if not already done, by running: spring project-catalog add elca https://github.com/slava-lu/elca-spring-boot-cli-starter, Here, elca is an arbitrary name you assign to the catalog
  • Check that the catalog has been registered properly: spring project-catalog list. You should see the catalog with the name elca in the output.
  • Navigate to the root folder of the existing Java Spring Boot project
  • Run spring boot add elca-jpa

Dependencies list

  • Spring Data JPA
  • Flyway Migration
  • PostgreSQL Driver
  • Flyway Migration

Additional Info

  • To learn how to use Spring Boot Flyway for data migration, read this docs
  • After starting the app you should wee two Todo items listed in the console output.