HTTP状态404 - / RESTfulWS /在测试restful Web服务时

时间:2017-02-13 15:19:57

标签: eclipse tomcat jersey

Here is the snapshot我正在尝试开发Restful Web服务,但每当我尝试在服务器上调试我的应用程序时,它都会显示:

HTTP状态404 - / RESTfulWS / 类型状态报告 消息/ RESTfulWS / description请求的资源不可用。

我的web.xml文件包含:

display-name RESTful display-name

<servlet>
    <servlet-name>Jersey REST Service</servlet-name>
    <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>

    <init-param>
        <param-name>com.sun.jersey.config.property.packages</param-name>
        <param-value>com.student</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>Jersey REST Service</servlet-name>
    <url-pattern>/rest/*</url-pattern>
</servlet-mapping>

0 个答案:

没有答案