• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

context not bount error in dispatcher-servlet.xml file : please help

 
jas preet
Ranch Hand
Posts: 78
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i get a error in <context:component-scan base-package="springmvc.web"/> that the context element is not bound . i want to use annotation based controller
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're missing the xmlns:context declaration. It should look like -

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic