【Java】CXF找不到资源路径~

Spring + CXF + 。。。整合
【Java】CXF找不到资源路径~

这个资源路径找不到。
[org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor:166] | No root resource matching request path /Zeng/ws has been found, Relative Path: /. Please enable FINE/TRACE log level for more details.
但是Service发布成功了。能正常执行GET POST PUT DELETE方法。

<!-- CXF begin -->

<servlet>

<servlet-name>CXFServlet</servlet-name>

<servlet-class>

org.apache.cxf.transport.servlet.CXFServlet

</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>CXFServlet</servlet-name>

<url-pattern>/*</url-pattern>

</servlet-mapping>

<!-- CXF end -->

<jaxrs:server id="services" address="/ws">

<jaxrs:serviceBeans>

<ref bean="MyServiceImpl" />

</jaxrs:serviceBeans>

<jaxrs:providers>

<bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider" />

</jaxrs:providers>

<jaxrs:languageMappings>

<entry key="en" value="en-gb" />

</jaxrs:languageMappings>

</jaxrs:server>

在跟踪源码中到了 org.apache.cxf.jaxrs.model.URITemplate
【Java】CXF找不到资源路径~
进去就挂了,折腾了一天也没弄明白。前来求助~

回答

cxf版本问题。
用cxf3.1.10

以上是 【Java】CXF找不到资源路径~ 的全部内容, 来源链接: utcz.com/a/89095.html

回到顶部