简体   繁体   English

与元素类型“beans”相关联的属性“xsi:schemaLocation”的前缀“xsi”未绑定

[英]The prefix “xsi” for attribute “xsi:schemaLocation” associated with an element type “beans” is not bound

Why am I having this error 为什么我有这个错误

[Fatal Error]: The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "beans" is not bound. [致命错误]:未绑定与元素类型“beans”关联的属性“xsi:schemaLocation”的前缀“xsi”。

at the header of my XML file: 在我的XML文件的标题:

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans      
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/tx
       http://www.springframework.org/schema/tx/spring-tx.xsd">

The error is at the last line of my XML declaration. 错误发生在我的XML声明的最后一行。 Please what can I do to remove this error? 请问我该怎么做才能消除此错误?

Simply add 只需添加

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

to your bean element to eliminate that error. 到你的bean元素来消除那个错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 与元素类型“ web-app”相关联的属性“ xsi:schemaLocation”的前缀“ xsi”未绑定 - The prefix “xsi” for attribute “xsi:schemaLocation” associated with an element type “web-app” is not bound cvc-complex-type.3.2.2:不允许属性“ xsi:schemalocation”出现在元素“ jtis_journey_list”中 - cvc-complex-type.3.2.2: Attribute 'xsi:schemalocation' is not allowed to appear in element 'jtis_journey_list' cvc-complex-type.3.2.2:属性xsi:不允许schemaLocation出现在Java DOM中的<people>中 - cvc-complex-type.3.2.2: Attribute xsi:schemaLocation is not allowed to appear in <people> in Java DOM 说明资源路径位置类型与元素类型“ beans:bean”相关联的属性“ p:sessionFactory-ref”的前缀“ p”未绑定 - Description Resource Path Location Type The prefix “p” for attribute “p:sessionFactory-ref” associated with an element type “beans:bean” is not bound 在 Apache Camel xml 验证上使用 xsi:schemaLocation 属性 - Utilizing xsi:schemaLocation attribute on Apache Camel xml validation 为什么xsi:schemaLocation声明中有冗余? - Why is there redundancy in xsi:schemaLocation declaration? 与元素类型“ ListView”关联的属性“ android:id”的前缀“ android”未绑定 - The prefix “android” for attribute “android:id” associated with an element type “ListView” is not bound 属性“xsi:noNamespaceSchemaLocation”不允许出现在元素“VAST”中 - Attribute 'xsi:noNamespaceSchemaLocation' is not allowed to appear in element 'VAST' 在JAXB中对生成的xml强制使用xsi:type属性 - Forcing xsi:type attribute on generated xml in JAXB xsi:schemaLocation如何与IntelliJ IDEA一起使用? - How does xsi:schemaLocation work with IntelliJ IDEA?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM