- JDK 1.8
- Maven 3+
- Eclipse | IntelliJ
- Spring Boot
- Spring Data REST
- Spring Data JPA
$ cd /maven-multimodule-sample
$ mvn clean install
DEV environment
$ cd /maven-multimodule-sample/sample-rest
$ mvn spring-boot:run -PDevelopment
QA environment
$ cd /maven-multimodule-sample/sample-rest
$ mvn spring-boot:run -PTesting
PRD environment
$ cd /maven-multimodule-sample/sample-rest
$ mvn spring-boot:run -PProduction
Get a book by id
{
"id": 1,
"title": "Java SE 8 for the Really Impatient",
"description": "Eagerly anticipated by millions of programmers, Java SE 8 is the most important Java update in many years."
}
Create a book
{
"title": "Java SE 8 for the Really Impatient",
"description": "Eagerly anticipated by millions of programmers, Java SE 8 is the most important Java update in many years."
}
{
"id": 1,
"title": "Java SE 8 for the Really Impatient",
"description": "Eagerly anticipated by millions of programmers, Java SE 8 is the most important Java update in many years."
}