Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

imedvedko/spring-data-jpa-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-data-jpa example

Build Status Coverage Status

Development Environment

  1. Install Git (Git SCM)
  2. Install Java Standard Edition Development Kit 8 (Oracle or OpenJDK)
  3. Install Maven 3 (Apache Maven Project)

Download

git clone git@github.com:imedvedko/spring-data-jpa-example.git

Build

cd spring-data-jpa-example
mvn clean package

Run

java -jar target/registrator.jar

Properties

See:

  1. Spring Boot Externalized Configuration
  2. Spring Boot Common application properties

Use

You can send HTTP POST JSON message with password to

http://localhost:8080/v1/user

cURL example:

curl -H "Content-Type:application/json" -d "{\"password\":\"\"}" http://localhost:8080/v1/user

Response:

{"id":"1"}