Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .

Posted 就是那么简单哈

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .相关的知识,希望对你有一定的参考价值。

例如:The prefix "context" for element "context:annotation-config" is not bound.

这种情况是因为没有申明该标签,然后就使用了。解决方发是,在配置文件头部加入相应的信息即可( 即xmlns:context="http://www.springframework.org/schema/context")。

这种情况是因为没有申明该标签,然后就使用了。解决方发是,在配置文件头部加入相应的信息即可。eg:

<beans  www.2cto.com   

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

............................................................................

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

............................................................................          

http://www.springframework.org/schema/aop/spring-aop.xsd"> 

以上是关于Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .的主要内容,如果未能解决你的问题,请参考以下文章

解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element

Spring学习的报错____1.Type interface com.xbf.dao.UserDao is not known to the MapperRegistry.

Spring使用c标签时缺失jstl uri="http://java.sun.com/jsp/jstl/core" prefix="c"

Spring使用c标签时缺失jstl uri="http://java.sun.com/jsp/jstl/core" prefix="c"

关于报错“More than one fragment with the name [spring_web] was found. This is not legal ...”的解决办法

关于报错“More than one fragment with the name [spring_web] was found. This is not legal ...”的解决办法