Spring MVC Error and Solution : Post#1

So I have been trying to learn Spring MVC and obviously there will be lots of configuration problems one faces. I'll be listing down those errors which I faced along with the solutions which worked for me. THERE IS NO GUARANTEE THAT IT WILL WORK FOR YOU but it might ;-)

Error : 
The prefix "mvc" for element "mvc:annotation-driven" is not bound. 

Solution :
from the power of StackOverFlow, I came to know that this problem is related to namespace so you can add following lines as shown below :

xmlns:mvc="http://www.springframework.org/schema/mvc"

http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd 


 
It should solve your problem. :-) Let me know in comments. :-) 

Share:

0 comments