【问题标题】:Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-3.2.3.xsd'无法读取架构文档“http://www.springframework.org/schema/beans/spring-beans-3.2.3.xsd”
【发布时间】:2016-09-29 19:41:05
【问题描述】:

每次构建失败并显示错误

  1. 找不到文档;
  2. 无法读取文档;
  3. 文档的根元素不是<xsd:schema>

我该如何解决?

<?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-3.2.3.xsd
">

【问题讨论】:

  • 请把自己放在阅读您文字的人的位置上。如果您不花更多精力在其上下文中描述确切的问题,那么也没有人有兴趣为您提供帮助。

标签: java xml spring spring-mvc xsd


【解决方案1】:

如果您每次构建都使用 STS,则您必须在线。 最好的解决方案是使用基于 java 的配置。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-17
    • 2012-09-01
    • 2015-11-01
    • 2019-08-19
    • 2021-11-27
    • 1970-01-01
    • 2014-12-04
    • 2015-06-10
    相关资源
    最近更新 更多