A simple Spring Boot and JAX - RS (Jersey) Application
In this post we’ll see how to integrate spring-boot with Jersey. Jersey is an reference implementation of JAX-RS. JAX-RS is a Java API for developing RESTful Service, it is from JSR 311 (obsolete) and JSR 339.
Open your browser :
http://localhost:8080/personrepo/search
Here are the results :
// 20170426061602
// http://localhost:8080/personrepo/search
[
{
"personId": 1,
"name": "Uzumaki Naruto",
"email": "[email protected]"
},
{
"personId": 2,
"name": "Uchiha Sasuke",
"email": "[email protected]"
},
{
"personId": 3,
"name": "Sakura Haruno",
"email": "[email protected]"
},
{
"personId": 4,
"name": "Hatake Kakashi",
"email": "[email protected]"
}
]
http://localhost:8080/personrepo/search/1
{
"personId": 1,
"name": "Uzumaki Naruto",
"email": "[email protected]"
}