由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 我想在服务器端实现Restful服务,用什么方法实现比较好?
相关主题
Java后台和前台iOS native API通讯,怎么实现MVC设计模式呢?spark java这东西咋样呀?
dropwizard vs. vertxJava REST api framework
dropwizard or spring不明白为什么总有人要去刻意贬低.NET
Tomcat 的localhost_access_log含有用户登录信息,怎么能改没有 (转载)有没有人用过org.json.JSONObject?
请推荐web service framework请教一下大家对于职业发展的一些看法
貌似Play秒杀Jersey?比较spring-boot 和 node.js
jvm十大web frameworkJava大牛说说到底dropwizard是啥情况呀?
所谓restful就是在url里嵌入可读的查询串?HBase的用户验证问题
相关话题的讨论汇总
话题: spring话题: jersey话题: restful话题: 实现话题: mvc
进入Programming版参与讨论
1 (共1页)
s****y
发帖数: 503
1
以前一直访问Restful,没有自己在服务器端实现过,我现在想在tomcat或websphere上
用Java实现Restful服务,有什么技术或者框架实现比较好?
z****e
发帖数: 54598
2
vert.x
tomcat/websphere只支持一般性的web
跟web service还有一定差异
当然你可以无视这个差异
z****e
发帖数: 54598
3
如果要在tomcat这些东西上做的话
jax-rs应该是the way to go
http://www.vogella.com/tutorials/REST/article.html
z****e
发帖数: 54598
4
vert.x做比tomcat和jax-rx凑一起简单
感觉两个都没啥难度
s***o
发帖数: 2191
5
Check Spring Boot or Dropwizard
s*i
发帖数: 5025
6
Node.js,分分秒秒的事儿。

[发表自未名空间手机版 - m.mitbbs.com]

【在 s****y 的大作中提到】
: 以前一直访问Restful,没有自己在服务器端实现过,我现在想在tomcat或websphere上
: 用Java实现Restful服务,有什么技术或者框架实现比较好?

N*****m
发帖数: 42603
7
你们这些人都不看原帖就回答吗?
tomcat下面基本上就是jersey了

【在 s*i 的大作中提到】
: Node.js,分分秒秒的事儿。
:
: [发表自未名空间手机版 - m.mitbbs.com]

w**z
发帖数: 8232
8
+1, you can setup one restful service using Jersery within a couple of hours.

【在 N*****m 的大作中提到】
: 你们这些人都不看原帖就回答吗?
: tomcat下面基本上就是jersey了

s*i
发帖数: 5025
9
看了。没有用可以忽略就好了。

[发表自未名空间手机版 - m.mitbbs.com]

【在 N*****m 的大作中提到】
: 你们这些人都不看原帖就回答吗?
: tomcat下面基本上就是jersey了

a****9
发帖数: 1983
10
+1。也用tomcat + jersey做过一个

hours.

【在 w**z 的大作中提到】
: +1, you can setup one restful service using Jersery within a couple of hours.
相关主题
貌似Play秒杀Jersey?spark java这东西咋样呀?
jvm十大web frameworkJava REST api framework
所谓restful就是在url里嵌入可读的查询串?不明白为什么总有人要去刻意贬低.NET
进入Programming版参与讨论
l******t
发帖数: 55733
11
用spring不就行了
c*********e
发帖数: 16335
12
spring 做restful,太簡單了。

【在 s****y 的大作中提到】
: 以前一直访问Restful,没有自己在服务器端实现过,我现在想在tomcat或websphere上
: 用Java实现Restful服务,有什么技术或者框架实现比较好?

w**z
发帖数: 8232
13
但那个不follow jax-rs spec

【在 c*********e 的大作中提到】
: spring 做restful,太簡單了。
s***o
发帖数: 2191
14
you can integrate jersey and spring boot with spring-boot-starter-jersey

【在 w**z 的大作中提到】
: 但那个不follow jax-rs spec
w**z
发帖数: 8232
15
what I meant was rest support directly from spring.

【在 s***o 的大作中提到】
: you can integrate jersey and spring boot with spring-boot-starter-jersey
n*******4
发帖数: 2285
16
jax-rs/Jersey 和 Spring MVC REST 比到底哪个好呢? 我看到这个Stackoverflow数
据用jax-rs 比用Spring的要多很多。
http://image.slidesharecdn.com/comparingjvmwebframeworks-february2014-140205123452-phpapp01/95/comparing-jvm-web-frameworks-february-2014-86-638.jpg?cb=1391626200

【在 w**z 的大作中提到】
: 但那个不follow jax-rs spec
W***o
发帖数: 6519
17
spring 是前端货

【在 n*******4 的大作中提到】
: jax-rs/Jersey 和 Spring MVC REST 比到底哪个好呢? 我看到这个Stackoverflow数
: 据用jax-rs 比用Spring的要多很多。
: http://image.slidesharecdn.com/comparingjvmwebframeworks-february2014-140205123452-phpapp01/95/comparing-jvm-web-frameworks-february-2014-86-638.jpg?cb=1391626200

w**z
发帖数: 8232
18
当然是Jax-rs 好, follows spec. 换container 理论上code 不用改。

【在 n*******4 的大作中提到】
: jax-rs/Jersey 和 Spring MVC REST 比到底哪个好呢? 我看到这个Stackoverflow数
: 据用jax-rs 比用Spring的要多很多。
: http://image.slidesharecdn.com/comparingjvmwebframeworks-february2014-140205123452-phpapp01/95/comparing-jvm-web-frameworks-february-2014-86-638.jpg?cb=1391626200

r***y
发帖数: 4379
19
用Spring MVC REST就是加个 dependency , 换container 根本不需要改code呀

【在 w**z 的大作中提到】
: 当然是Jax-rs 好, follows spec. 换container 理论上code 不用改。
g*****g
发帖数: 34805
20
Unless you are using spring MVC already, use Jersey. The simple reason is
that it has much bigger community. All issues you have, there's already an
answer.

【在 r***y 的大作中提到】
: 用Spring MVC REST就是加个 dependency , 换container 根本不需要改code呀
相关主题
有没有人用过org.json.JSONObject?Java大牛说说到底dropwizard是啥情况呀?
请教一下大家对于职业发展的一些看法HBase的用户验证问题
比较spring-boot 和 node.jsJava是不是主要用于开发Web的?
进入Programming版参与讨论
r***y
发帖数: 4379
21
thanks for sharing, "much bigger community" is an attractive factor.
Yeah, my existing projects are all with spring MVC, so did not bother extra
libs.
Next project will definitely give Jersey a shot.

【在 g*****g 的大作中提到】
: Unless you are using spring MVC already, use Jersey. The simple reason is
: that it has much bigger community. All issues you have, there's already an
: answer.

n*******4
发帖数: 2285
22
请问好虫: 有什么更多的数据可以支持Jersey has much bigger community这个结论?

【在 g*****g 的大作中提到】
: Unless you are using spring MVC already, use Jersey. The simple reason is
: that it has much bigger community. All issues you have, there's already an
: answer.

g*****g
发帖数: 34805
23
Jersey is the reference impl for JAX RS. It's like hotspot to other JVM. But
you can always Google to have your own judgment.

论?

【在 n*******4 的大作中提到】
: 请问好虫: 有什么更多的数据可以支持Jersey has much bigger community这个结论?
S***s
发帖数: 104
24
jersey是不是就annotation跟spring mvc有点区别?

【在 g*****g 的大作中提到】
: Unless you are using spring MVC already, use Jersey. The simple reason is
: that it has much bigger community. All issues you have, there's already an
: answer.

n*******4
发帖数: 2285
25
这有两种Annotation的对比:
https://technoless.wordpress.com/2013/04/02/spring-rest-vs-jersey-jax-rs/

【在 S***s 的大作中提到】
: jersey是不是就annotation跟spring mvc有点区别?
c*********e
发帖数: 16335
26
netflix用的是spring 的restful ? 你以前提到你的印度老板让你用spring security.

【在 g*****g 的大作中提到】
: Unless you are using spring MVC already, use Jersey. The simple reason is
: that it has much bigger community. All issues you have, there's already an
: answer.

g*****g
发帖数: 34805
27
We have like 500 services, so it's up to the service owner for what stack to
use. You can still use Jersey in a spring application, just have a listener
in a servlet.

security.

【在 c*********e 的大作中提到】
: netflix用的是spring 的restful ? 你以前提到你的印度老板让你用spring security.
c*********e
发帖数: 16335
28
spring自己的restful这么弱啊,被jersey比下去了。

to
listener

【在 g*****g 的大作中提到】
: We have like 500 services, so it's up to the service owner for what stack to
: use. You can still use Jersey in a spring application, just have a listener
: in a servlet.
:
: security.

1 (共1页)
进入Programming版参与讨论
相关主题
HBase的用户验证问题请推荐web service framework
Java是不是主要用于开发Web的?貌似Play秒杀Jersey?
最近用vert.x解决了一个实际问题jvm十大web framework
对于Java系统,前后端分离的架构现在用的多吗?所谓restful就是在url里嵌入可读的查询串?
Java后台和前台iOS native API通讯,怎么实现MVC设计模式呢?spark java这东西咋样呀?
dropwizard vs. vertxJava REST api framework
dropwizard or spring不明白为什么总有人要去刻意贬低.NET
Tomcat 的localhost_access_log含有用户登录信息,怎么能改没有 (转载)有没有人用过org.json.JSONObject?
相关话题的讨论汇总
话题: spring话题: jersey话题: restful话题: 实现话题: mvc