Saturday, 19 May 2018

Spring Data Rest

Spring-Data-Rest builds on top of Spring-Data-Repository. it may automatically analyze underlying data model, and bring out a REST API layer in a hypermedia format.  It, implicitly, merged Rest-API within the repository layer. By this way, it removes controller and service layer.

In Spring boot, it is quite simple to initiate a Spring-Data-Rest layer by adding a starter, i.e.
 org.springframework.boot
 spring-boot-starter-data-rest

Certainly, it also needs to include following for repository objects, i.e.
 org.springframework.boot
 spring-boot-starter-data-jpa
 


 
 

No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...