根据本手册,添加 Web 服务应该是小菜一碟,但我正在努力使其可访问。这是代码:
@Name("examineeController")
@Path("/examinee")
public class ExamineeController {
@GET
@Produces("text/plain")
@Path("/setteststatus")
private String updateProjectTestStatus(/) {
return "OK";
}
...并像这样收到 404:
HTTP Status 404 - Could not find resource for relative : /examinee/setteststatus of full path: http://localhost:8080/am/seam/resource/rest/examinee/setteststatus