Create a REST service in Java using JAX-RS and Eclipse
In this article, I will be demonstrating creating a REST service in Java using JAX-RS and Eclipse. I will be using Maven and Eclipse. Create a Project and And Maven Support Step 1 – Follow the steps in this article to create a web project in Eclipse with Maven Support. You should see a project as follows: Step 2 – Add Maven dependencies for JAX-RS and Jersey as follows: <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>3.3.1</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-bundle</artifactId> <version>1.19.4</version> </dependency> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20170516</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> ...