Spring Data MongoDB example with Spring MVC 3.2

Here is another example web application built with Spring MVC 3.2 and Spring Data 1.2, integrating with the MongoDB document database. STEP 1: Create new webapp project, I will use maven for this. (Note: I am on my macbook with Maven 3 and Java 6 installed.) mvn archetype:generate -DgroupId=com.manishchhabra.blog -DartifactId=HelloSpringWithMongoDB -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false You could create […]

Continue reading →

The 5 main differences betwen HashMap and Hashtable

HashMap and Hashtable both implement java.util.Map interface but there are some differences that Java developers must understand to write more efficient code. As of the Java 2 platform v1.2, Hashtable class was retrofitted to implement the Map interface, making it a member of the Java Collections Framework. One of the major differences between HashMap and Hashtable is that HashMap is […]

Continue reading →