JSON-RPC in Spring framework 3 [closed]

試著忘記壹切 提交于 2019-12-07 17:18:47

问题


I need some recomendations, best practice/libs, when implementing JSON-RPC in my Spring 3 web application.

I found this http://code.google.com/p/jsonrpc4j/ but it didn't seem to be any relases available.

Edit:

For clarification, I want to provide a JSON-RPC service


回答1:


Spring MVC with Jackson can provide a json response with a REST call. This is easy. But I don't think there is any facility in native Spring to accept a JSON-RPC request including a method name and return a response including the JSON-RPC error codes.

Your best bet may be to look at a library like jsonrpc4j.



来源:https://stackoverflow.com/questions/10883302/json-rpc-in-spring-framework-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!