At times it is required to format the values while creating the json for eg Date, numeric value. The jackson json library provide a class JsonSerializer which helps in formatting the Object value. For e.g Convert the date return from DB in MM-dd-yyyy
Error for ServeChild1Controller: No unique bean of type [com.service.ParentService] is defined: expected single matching bean but found 2 child1service, child2service This error occurs if there are two beans implementing the [...]
Read More
At times it is required to load properties not present in the war file. Typical usage can be have a war/jar file bundled and having property file for different environment [...]
Read More
This post will give brief idea about creating views, controller in Spring. Note: The code can be downloaded. URL for download is present at the end. A simple example : [...]
Read More
The comprehensive link about Twitter approach for using Oauth (its same for other cases too ) can be found TwitterOAuth To cut it short following are the important steps: Get [...]
Read More
At times it is required to add Enum values on the jsp page so that its easy to handle on the server side. To display this feature i am using [...]
Read More
Its very easy to integrate the MongoDB with a java driver … Download Java Driver Once downloaded the connection to the mongodb is made using configServer() and other methods are [...]
Read More
I recently used MongoDB at my work and was tempted to try more. So i wrote a simple app in rails to play with it.. Lets assume rails is already [...]
Read More
It may happen that at time while deleting the ruby gem the error can be : ERROR: While executing gem ... (Gem::InstallError) Unknown gem rake >= 0 This generally happens [...]
Read More
Xpath is widely used to scrap the desired contents from a html page. Here i am making an attempt to read the HTML page and extract information. For this i [...]
Read More