1.8. Bean 没有注入到服务实施中,@CXFEndpoint ("/my-path")
红帽构建的 Apache Camel 3.8.4.SP2 和 Quarkus CXF 3.8.4.SP2 和 Quarkus CXF 3.8.4 的 Apache Camel 构建的 @CXFEndpoint 注解被错误地引入。红帽构建的 Apache Camel for Quarkus 3.8 和 Quarkus CXF 3.8.5 恢复了它。
该注释允许您通过新注释 @CXFEndpoint ("/myPath") 指定 CXF 服务端点路径。
对于具有 @WebService 和 @CXFEndpoint 注释的服务实施类,这不起作用。在这些情况下,如果服务具有一些 @Inject 字段,这些字段为空,服务调用会抛出 NullPointerException。
没有 @CXFEndpoint 注解的服务实现不受影响。
我们建议您继续在 application.properties 中指定服务端点路径,如下所示:
Example
quarkus.cxf.endpoint."/myPath".implementor = org.acme.MyServiceImpl
quarkus.cxf.endpoint."/myPath".implementor = org.acme.MyServiceImpl