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.
精彩评论