Spring中出现The prefix "xxxx" for element "xxxxxx"is not bound.即一些标签不提示而且你又找不到dtd约束文件
2014-08-05 17:54
471 查看
你在学习Spring框架时,是否遇到了这样的情况:
看着别人的视频敲代码,但自己的编辑器出现的内容和视频上的不一样;在Eclipse中想要添加一些标签提示,但是在手动添加dtd约束文件的时候你又找不到相应的dtd约束文件,你可以这样做:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">
对照着自己的xml文件的开头,选择性的添加复制这些内容即可解决问题。
我的就是不提示util标签,最后把那个xmlns:util="http://www.springframework.org/schema/util" 和http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd加到特定的位置后,相应的标签提示就会出来,Eclipse也不会抛出异常了。
但我写的这些内容只是其中的一点,在后续发现过程中会进行更新,如果有谁有更多的标签提示的dtd希望可以上传下载!
看着别人的视频敲代码,但自己的编辑器出现的内容和视频上的不一样;在Eclipse中想要添加一些标签提示,但是在手动添加dtd约束文件的时候你又找不到相应的dtd约束文件,你可以这样做:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">
对照着自己的xml文件的开头,选择性的添加复制这些内容即可解决问题。
我的就是不提示util标签,最后把那个xmlns:util="http://www.springframework.org/schema/util" 和http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd加到特定的位置后,相应的标签提示就会出来,Eclipse也不会抛出异常了。
但我写的这些内容只是其中的一点,在后续发现过程中会进行更新,如果有谁有更多的标签提示的dtd希望可以上传下载!
相关文章推荐
- Spring中出现The prefix “xxxx” for element “xxxxxx”is not bound.即一些标签不提示而且你又找不到dtd约束文件
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound.
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- shiro用户授权的时候,在springmvc.xml配置出现The prefix "aop" for element "aop:config" is not bound.
- aop advisor说明以及The prefix "aop" for element "aop:config" is not bound.错误原因
- 错误提示:The prefix "aop" for element "aop:config" is not bound.
- 配置Spring的applicationContext.xml文件时出现The prefix "context" for element "context:component-scan" is not
- The prefix "context" for element "context:component-scan" is not bound.
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- SSH整合出现的问题:The prefix "tx" for element "tx:annotation-driven " is not bound
- the prefix "tx" for element "tx:annotation-driven" is not bound
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- spring 配置问题:The prefix "util" for element "util:list" is not bound"
- The prefix "mvc" for element "mvc:view-controller" is not bound.
- 报错:The prefix "context" for element "context:annotation-config" is not bound.
- java错误-The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法