我正在尝试使用Jersey编写一个RESTful Web服务。
package sample.hello.resources;
@Path("/hello")
public class HelloResource {
@GET
@Produces({MediaType.TEXT_PLAIN})
public String sayHello() {
return "Hello Jersey";
}
}
我的Eclipse在所有注解中都出现错误 - @Path, (Path cannot be resolved to a type)
我是否需要包含其他库或配置Eclipse项目?