开发者

can i create java servlet as rest web service

开发者 https://www.devze.com 2023-02-24 17:14 出处:网络
Can I use Java Servlet as a Re开发者_如何学JAVAst web service? And how to request using curl to servlet?

Can I use Java Servlet as a Re开发者_如何学JAVAst web service? And how to request using curl to servlet?

thank


Sure you can use a (raw) servlet to create a REST service. But that is too much work knowing that there exists a standard API for this (JAX-RS JSR-311) and many frameworks implementing it :

http://www.jboss.org/resteasy
http://cxf.apache.org/docs/jax-rs.html
http://jersey.java.net/

0

精彩评论

暂无评论...
验证码 换一张
取 消