Java的web服务Java、web

2023-09-03 22:15:42 作者:只为尔沉醉

什么是Java等同于脚本的服务(如Web服务,但使用JSON而不是XML)的.NET世界的?

What is the Java equivalent to Script service (like web service but with JSON instead of XML) in the .net world?

我在找创建和使用Java invoiking网络服务的方式。我preFER找到一种方法,让我定义将作为Web服务的方法。我不喜欢的专用的JSP或Servlet为具体要求的解决方案。

I am looking for a way of creating and invoiking web services using java. I prefer to find a way that will allow me define a method that will act as web service. I don't like the solutions of "dedicated jsp or servlet" for the specific request.

有没有这样做的任何笏?

Is there any wat of doing so?

推荐答案

有很多的框架,可以帮助你做到这一点。我个人preFER春天。 但是,你可以搜索基于Java的REST风格的Web服务框架。下面是从维基百科这样的框架的列表: http://en.wikipedia.org/wiki/List_of_web_service_frameworks

There are a lot of frameworks that help you to do this. I personally prefer Spring. But you can just search for "Java based RESTful web services frameworks". Here is a list of such framework from Wikipedia: http://en.wikipedia.org/wiki/List_of_web_service_frameworks

享受。