开发者

Java WebService (Rest/SOAP) Design Pattern

We have an application built using Springs/Hibernate/Springs-MVC/.

Now we want to provide RESTful services, planning to use Springs MVC. My question is, is it better to exp开发者_如何学Cose the service API directly as Rest Service or write a new Pojo Layer on top of the Service Layer and expose that ?

Will appreciate your insights. Thanks.


I am pretty sure you would want to have a top layer so you can only expose what you want to expose from your Web Service to the outside.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜