January 28, 2019
Spring MVC - How to handle errors from a controller?
In a web application, it is very important to handle errors. Proper error handling would protect the application from several vulnerabiliti...Read Moreby Phee Jay
January 25, 2019
Java - How to find the IP Address of a host in Java ?
In Java, if you are looking to resolve an IP Address from the given hostname, then you can leverage the capabilities provided by InetAddress...Read Moreby Phee Jay
April 13, 2017
Localization with Spring
Localization enables applications to cater to users of different locations and languages. Spring, as usual, has support for this aspect as ...Read Moreby Phee Jay
March 04, 2017
Deep Copy Java Objects through Serialization
When it comes to deep copy or cloning an object, the first thing that comes to mind is to override the clone() method and set each field ma...Read Moreby Phee Jay
February 17, 2017
JSON Property Name Customization in Jackson using PropertyNamingStrategy
Jackson is one of the most popular java libraries for serialization/deserialization of POJOs to/from JSON. By default, Jackson derives the...Read Moreby Phee Jay