I am trying to make REST call in java using angularjs-
Java Code:-
@GET
@Path("/getData/{id}")
@Produces(MediaType.TEXT_PLAIN)
public static String getData(@PathParam("id") String id) {
//Operation
}
AngularJs REST call-
var response = $http.get('/projName/rest/get/getData', {params: {id: id}});
But it's giving me exception-
org.jboss.resteasy.spi.NotFoundException: Could not find resource for full path: