开发者

Java WebService (Rest/SOAP) Design Pattern

开发者 https://www.devze.com 2023-03-19 04:51 出处:网络
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 servi

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

精彩评论

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