Spring Boot + Jersey + Spring Data JPA Build REST CRUD APIs Example
Hello everyone, today we will learn how to develop CRUD REST APIs using the integration of Jersey with Spring boot, JPA/Hibernate, and H2DB as a database. The spring-boot-starter-jersey is a starter for building RESTful web applications using JAX-RS and Jersey. It is an alternative to spring-boot-starter-web. Jersey RESTful Web Services framework is an open source, production quality, framework for developing RESTful Web Services in Java. It provides support for JAX-RS APIs and serves as a JAX-RS Reference Implementation. What we’ll build? We are developing CRUD REST APIs using the integration of Jersey with Spring boot, JPA/Hibernate, and H2DB as a database. /api/v1/employees - GET /api/v1/employees - POST /api/v1/employees/{id} - PUT /api/v1/employees/{id} - DELETE /api/v1/employees/{id} - GET Application Directory Structure Maven[pom.xml] A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and co