java - 无法添加RESTEasy WS

标签 java jakarta-ee jboss resteasy

根据this手动添加网络服务应该是小菜一碟,但我正在努力使其可访问。 这是代码:

@Name("examineeController")
@Path("/examinee")
public class ExamineeController {

    @GET
    @Produces("text/plain")
    @Path("/setteststatus")
    private String updateProjectTestStatus(/) {
        return "OK";
    }

...并收到这样的 404:

HTTP 状态 404 - 找不到相对资源:完整路径的/examinee/setteststatus:http://localhost:8080/am/seam/resource/rest/examinee/setteststatus

最佳答案

我的史诗中最史诗的失败了。 私有(private)字符串 updateProjectTestStatus(/) 私有(private)!!!它必须是公开!

关于java - 无法添加RESTEasy WS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16190460/

相关文章:

java - AspectJ 拦截器不工作

java - 无法通过 sengrid v3 api 发送电子邮件(java.io.IOException : Request returned status Code 401)

JavaFX 在 for 循环期间暂停而不使用 Thread.Sleep()

apache - 绝对 uri : http://java. sun.com/jsp/jSTL/core 无法在 web.xml 或使用此应用程序部署的 jar 文件中解析

Java EE 7 自动计时器(EJB 计时器)不适用于 WildFly 8.1.0

jboss - 检查 Wildfly Server 是否与我的应用程序一起运行?

java - 我们可以将 .sql 文件导入 HSQL 数据库吗?

eclipse - 从 Eclipse 中的搜索结果中排除目标文件夹

java - Jboss EAP 6.3部署错误: oracle datasource not found

java - 在 JBoss 5 上更改 war 文件中的 HTML、JS 和 CSS 等静态内容,无需重新部署