简体   繁体   English

如何在Java中创建独立的RESTful服务以使用JSON?

[英]How to create a standalone RESTful Service in Java to consume JSON?

I am trying to create a standalone RESTful Service in Java without a Web Server. 我正在尝试在没有Web服务器的Java中创建独立的RESTful服务。 This service will consume JSON that's sent part of the request from client applications. 此服务将使用从客户端应用程序发送的部分请求的JSON。

I can create a SOAP web service using JAX-WS but I want to create REST service that will be run without a web server. 我可以使用JAX-WS创建SOAP Web服务,但是我想创建无需Web服务器即可运行的REST服务。 Please suggest how can I create this? 请提出如何创建此建议? Appreciate your help. 感谢您的帮助。

Thanks 谢谢

I prefer to choose spring boot to create Restful web services where it does not depend on web server. 我更喜欢选择spring boot来创建不依赖Web服务器的Restful Web服务。 We can create and build the rest service as service. 我们可以创建和构建其余的服务即服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM