diff --git a/spring-mvc-xml/pom.xml b/spring-mvc-xml/pom.xml
index 7238c7ec60..581de439c6 100644
--- a/spring-mvc-xml/pom.xml
+++ b/spring-mvc-xml/pom.xml
@@ -39,6 +39,12 @@
runtime
+
+ org.hibernate
+ hibernate-validator
+ 5.1.1.Final
+
+
@@ -120,7 +126,7 @@
maven-war-plugin
${maven-war-plugin.version}
-
+
org.apache.maven.plugins
maven-surefire-plugin
diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/EmployeeController.java b/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/EmployeeController.java
index 0057f68df9..007788a843 100644
--- a/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/EmployeeController.java
+++ b/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/EmployeeController.java
@@ -11,7 +11,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
-
@Controller
public class EmployeeController {
@@ -30,4 +29,5 @@ public class EmployeeController {
model.addAttribute("id", employee.getId());
return "employeeAdded";
}
+
}