You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.0 KiB

spring-rest-example

This project is a example of using jpa.

The project uses the Spock Framework Example Project

Prerequisites

  • JDK 17 or higher

  • Maven use mvnw wrapper

Building with Maven

Downloaded files will be stored in the local Maven repository (typically user_home/.m2/repository).

Type: test

./mvnw clean test

Type: build

./mvnw clean package

Type: preparation

  • create a folder, for example, project.
  • copy spring_rest_example-version.jar from a release to the folder.
    • if you build the application from source, find the file in target/.
  • copy docker/docker-compose.yml to the folder.
  • turn up the database in the project/docker:
    docker-compose up -d
    
  • wait a minute while the database is bootstrapping.
  • now you can connect with the application.

Type: run

After the preparation, run the application in the folder, for example, project:

java -jar spring_rest_example-2.0.1.jar

Author

Kostiantyn Klochko (c) 2023