0

根据手册,添加 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

4

1 回答 1

1

我史诗中最史诗的失败。private String updateProjectTestStatus(/) private!!!它必须是public

于 2013-04-25T08:18:45.450 回答