我正在使用jax-rs,我想显示id名称年龄,但它显示错误 [英] I am using jax-rs and I want to show id name age but it is showing an error

查看:109
本文介绍了我正在使用jax-rs,我想显示id名称年龄,但它显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTTP状态404 - /com.vogella.jersey.todo/rest/todos



类型状态报告



message /com.vogella.jersey.todo/rest/todos



描述所请求的资源(/com.vogella.jersey.todo/rest/todos无法使用。



Apache Tomcat / 7.0.12



i已经使用了goto服务器属性所有的事情,但问题没有解决。我正在使用此链接http://www.vogella.com/tutorials/REST/article.html



HTTP状态404 - /com.vogella.jersey.todo/rest/todos/1



类型状态报告



消息/com.vogella.jersey.todo/rest/todos/1



描述所请求的资源(/com.vogella.jersey.todo/rest/todos/1 )不可用。



Apache Tomcat / 7.0.12



我试过的:



i尝试了JAX_RS,但它显示错误HTTP状态404 - /com.vogella .jersey.todo / rest / todos



类型状态报告



条消息/com.vogella.jersey .todo / rest / todos



描述所请求的资源(/com.vogella.jersey.todo/rest/todos)不可用。



Apache Tomcat / 7.0.12



i已经使用了goto服务器属性一切但问题没有解决。我是使用此链接http://www.vogella.com/tutorials/REST/article.html



HTTP状态404 - /com.vogella.jersey.todo/rest / todos / 1



类型状态报告



留言/com.vogella.jersey.todo/rest / todos / 1

HTTP Status 404 - /com.vogella.jersey.todo/rest/todos

type Status report

message /com.vogella.jersey.todo/rest/todos

description The requested resource (/com.vogella.jersey.todo/rest/todos) is not available.

Apache Tomcat/7.0.12

i have already used goto server properties an all things but the problem is not solved.I am using this link http://www.vogella.com/tutorials/REST/article.html

HTTP Status 404 - /com.vogella.jersey.todo/rest/todos/1

type Status report

message /com.vogella.jersey.todo/rest/todos/1

description The requested resource (/com.vogella.jersey.todo/rest/todos/1) is not available.

Apache Tomcat/7.0.12

What I have tried:

i tried JAX_RS but it is showing an error HTTP Status 404 - /com.vogella.jersey.todo/rest/todos

type Status report

message /com.vogella.jersey.todo/rest/todos

description The requested resource (/com.vogella.jersey.todo/rest/todos) is not available.

Apache Tomcat/7.0.12

i have already used goto server properties an all things but the problem is not solved.I am using this link http://www.vogella.com/tutorials/REST/article.html

HTTP Status 404 - /com.vogella.jersey.todo/rest/todos/1

type Status report

message /com.vogella.jersey.todo/rest/todos/1

推荐答案

你应该检查 /com.vogella.jersey.todo/rest/todos 导致服务器上的现有URL。

如果退出,还要检查浏览器是否具有访问权限。



要确保,请键入地址直接在浏览器地址栏中查看是否有效。这将告诉您代码是错误还是网址错误。
You should check that /com.vogella.jersey.todo/rest/todos lead to an existing url on the server.
If exits, also check that the browser have access rights.

To make sure, type the address directly in browser address bar and see if it works. This will tell you if your code is wrong or url is wrong.


这篇关于我正在使用jax-rs,我想显示id名称年龄,但它显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆