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 More
by 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 More
by Phee Jay

September 02, 2017

Spring - Initializing a Spring Bean

In Spring, it's often necessary to run custom code during a bean's initialization—for example, to validate mandatory properties or ...Read More
by Phee Jay

August 04, 2017

Groovy - How to Execute Groovy Scripts in Sublime Text?

This article covers the steps to setup Sublime Text to execute Groovy scripts. Read More
by Phee Jay

August 03, 2017

How to Read Files in Groovy?

This article shows various ways of reading a text file in groovy. Read More
by Phee Jay

August 01, 2017

How to Create Web Notifications

Web Notifications provide ways for websites to display notifications to users e.g. alerting the user about a business event or success/fai...Read More
by Phee Jay

July 12, 2017

Spring - Lookup Method or Method Injection

Most common injection mechanisms used in Spring are Constructor and Property injections. In both the mechanisms, the injection happens only...Read More
by Phee Jay