[英]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.