配置Spring的applicationContext.xml文件时出现错误:The prefix "context" for element "context:component-scan" is not bound.
解决办法:在文件中添加:
xmlns:context=http://www.springframework.org/schema/context
之后报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.
解决办法:
在xsi:schemaLocation中添加:
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd