The prefix “context” for element “context:component-scan” is not bound

后端 未结 5 852
醉话见心
醉话见心 2020-12-30 03:14

I am working on spring3 mvc and came up with this error

org.xml.sax.SAXParseException: The prefix \"context\" for element \"context:component-scan\" is not bound.

5条回答
  •  执笔经年
    2020-12-30 04:03

    Add the following in the beans of dispatcher-servlet.xml file itself :

    so your file looks like :

    
    
    
    
    
    

提交回复
热议问题