【问题标题】:applicationContext.xml validation error in spring 4.3?spring 4.3 中的 applicationContext.xml 验证错误?
【发布时间】:2017-06-27 17:42:39
【问题描述】:
  1. 我的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”的声明。

我已经用谷歌搜索并试图解决这个问题,但没有奏效。如果有解决方案,请帮助我。谢谢你。

【问题讨论】:

  • 我无法重现这个。
  • 可能是编码问题或不可见字符问题。你是从头开始写的还是从某个地方复制的?

标签: xml spring


【解决方案1】:

我不确定发生了什么以及为什么我的代码在发布时给我带来了很多问题。我在这个问题上花了 24 小时,但第二天它工作正常,没有任何变化。很抱歉给您添麻烦。

【讨论】:

    猜你喜欢
    • 2012-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多