栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

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

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

 spring配置,报如下错误:

 The prefix "context" for element "context:component-scan" is not bound.

 是因为该配置文件的标签的属性中少了属性信息,增加相应属性即可,如下:

  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

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/746435.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号