I am working on a jersey service. When I import java.nio.file
then I get a problem with the @Path
annotation and the Path interface in NIO.
The error is "type ambiguous", what makes sense to me. But I do not know how to resolve it.
import javax.ws.rs.*;
import java.nio.file.*; // problem with @PATH
@Path ("service")
public class Service
{
@GET
@Produces(MediaType.TEXT_HTML)
public String getIt ()
{
return "blabla";
}
}
I am not an expert with annotations and need a little help here. Thanks!