需要用Java编写RESTful JSON服务 [英] Need to write a RESTful JSON service in Java

查看:129
本文介绍了需要用Java编写RESTful JSON服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的要求:


  1. 我在mysql中有一个简单的表(考虑任何带有几个字段的表)

  2. 我需要在Java中编写一个简单的RESTFUL JSON Web服务,在此表上执行CRUD操作。

I我试图在网上搜索一些全面的例子,但找不到任何。
有人可以帮忙吗?

I tried searching on the net for some comprehensive example for this but could not find any. Can anyone help?

推荐答案

Jersey 是用于构建RESTful Web服务的JAX-RS实现。

Jersey is a JAX-RS implementation for building RESTful webservices.

从他们的教程开始。这很简单。

Start with their tutorial. It's pretty easy.

http:/ /jersey.java.net/nonav/documentation/latest/getting-started.html

编辑:此外,还有一个伟大的O'Riley关于这个主题的书(令人震惊,我知道);
使用JAX-RS的RESTful Java

Also, there's a great O'Riley book on the subject (shocking, I know); RESTful Java with JAX-RS

这篇关于需要用Java编写RESTful JSON服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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