Say you have a LocalDate attribute in one of your models in your Spring based RESTful Web Service and you need your clients to send and receive the LocalDate in some form of yyyyMMdd LocalDate myDate; Simply add the following dependency to your classpath (pom.xml)...
Category: spring-boot
Dealing with JPA Entities backed by SQL Queries that return no unique columns
Earlier I was working on a Spring Boot application where in I had to join multiple tables and map the returned columns to a JPA entity. But the problem was that none of the returned columns had unique values. Here’s a snippet of how my...
Global Exception handling for Spring MVC
Proper exception handling in a REST service can help Provide proper HTTP response codes and pertinent error messages to downstream clients Logging custom exceptions can help with analytics (If logs are aggregated through a Log aggregation system such as Splunk, one can easily find out...