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. .的主要内容,如果未能解决你的问题,请参考以下文章