spring配置<context:component-scan base-package="包名" />,报如下错误:
The prefix "context" for element "context:component-scan" is not bound.
是因为该配置文件的<bean></bean>标签的属性中少了属性信息,增加相应属性即可,如下:
xmlns:context="http://www.springframework.org/schema/context"
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
————————————————
版权声明:本文为CSDN博主「pigcoffee」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/hqwang4/article/details/78840114