Java 8 使用ContainerRequestFilter进行RestEasy授权

Java 8 使用ContainerRequestFilter进行RestEasy授权,java-8,resteasy,wildfly-10,Java 8,Resteasy,Wildfly 10,我已经使用ContainerRequestFilter实现了RestEasy授权。但是,当我调用服务方法时,我的筛选器代码抛出NullPointerException。请参阅下面的代码片段 ResourceMethodInvoker methodInvoker = (ResourceMethodInvoker) requestContext.getProperty(“org.jboss.resteasy.core.ResourceMethodInvoker”); Method meth

我已经使用ContainerRequestFilter实现了RestEasy授权。但是,当我调用服务方法时,我的筛选器代码抛出NullPointerException。请参阅下面的代码片段

 ResourceMethodInvoker methodInvoker = (ResourceMethodInvoker) requestContext.getProperty(“org.jboss.resteasy.core.ResourceMethodInvoker”);
    Method method = methodInvoker.getMethod();
requestContext.getProperty()方法返回NULL。读取资源批注是否需要任何配置。请帮助我解决此问题

技术堆栈: 野生飞行10 java1.8
RestEasy 3.0.11Final

问题的可能重复之处在于get属性方法why requestContext.getProperty(“org.jboss.RestEasy.core.ResourceMethodInvoker”)方法返回null