Intellij IDEA配置springMVC时提示"context:component-scan" is not bound

xxx-servlet.xml配置


时,报错:The prefix "context" for element "context:component-scan" is not bound.


因为少了属性说明

Intellij IDEA配置springMVC时提示


下面是需要添加的文字:

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


http://www.springframework.org/schema/context

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

你可能感兴趣的:(Java)