- Install JDK - Amazon Corretto - JDK 11
Download link: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html
-
Setup maven
-
Build service locally
Switch to service directory
mvn clean install
- Run locally
Execute service locally to connect to in-memory h2 database
java "-Dspring.profiles.active=local" -jar ./target/data-service-0.0.1-SNAPSHOT.jar
Execute service locally to connect to Postgres database
java "-Dspring.profiles.active=db" -jar ./target/data-service-0.0.1-SNAPSHOT.jar
Utility | URL |
---|---|
Swagger UI | <SERVER_URL>/data-service/api/swagger-ui/index.html |
H2 Console | <SERVER_URL>/data-service/api/h2-console/index.html |