【发布时间】:2017-06-27 17:42:39
【问题描述】:
-
我的applicationContext.xml
给出验证错误。即使是简单的 xml 文件也会出现同样的错误。
我的 applicationContext.xml 如下:-
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.3.xsd">
</beans>
错误是:-
cvc-elt.1:找不到元素“beans”的声明。
我已经用谷歌搜索并试图解决这个问题,但没有奏效。如果有解决方案,请帮助我。谢谢你。
【问题讨论】:
-
我无法重现这个。
-
可能是编码问题或不可见字符问题。你是从头开始写的还是从某个地方复制的?