我应该用什么技术来开发小型Java Web服务? [英] What technology I should use to develop small Java webservice?

查看:96
本文介绍了我应该用什么技术来开发小型Java Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我需要webservice,客户端可以从我们的webservice请求id为一个布尔值。哪种技术最适合这种小型API?当然,接口可能会有更多功能,但现在我们只需要一个功能。它还需要具有身份验证,以便只有经过授权的客户端才能访问服务。每个客户都有不同的身份证明信用。

Basically I need webservice where client can request with id one boolean value from our webservice. What technology would be most suitable for this small API? Of course it is possible that there will be more functions to interface, but now we need only one function. It also needs to have authentication, so that only auhtorized clients can access service. And every client have different auth credientials.

为此目的,什么是好技术?

What would be good technology for this purpose?

推荐答案

我正在使用 resteasy 构建我的网络服务,这很容易使用...只需要在我的方法上使用注释来提供网络服务。

I am using resteasy to build my webservices and it is pretty easy to use ... just need to use annotations on my methods to deliver the webservices.

这里是不同JAX-RS框架的比较。看看吧

Here is a comparison of different JAX-RS frameworks. Take a look at it

这篇关于我应该用什么技术来开发小型Java Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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