【问题标题】:problem with DWR integration in spring?春季 DWR 集成的问题?
【发布时间】:2010-12-05 06:13:02
【问题描述】:

其实不是这样的,怎么集成DWR之类的。但实际上问题是我正在使用

xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"

几个小时前 'http://www.directwebremoting.org' 关闭了,所以我无法部署我的应用程序,现在当网站回来时,我知道这个链接 '@ 987654322@' 已经不存在了。

那么这个问题的可能解决方案是什么,为什么它连接到指定的站点。我应该怎么做,即使网站关闭或链接不可用,我的应用程序仍然可以部署。

【问题讨论】:

    标签: xml namespaces spring dwr


    【解决方案1】:

    看起来他们可能已经在 DWR 的网站上移动了 xsd 的位置。您应该可以通过将schemaLocation 添加到您的配置文件中来解决此问题,如下所示:

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
    xsi:schemaLocation=" http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.directwebremoting.org/schema/spring-dwr
    http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">
    

    如果您担心 DWR 站点的可用性,您可以将架构放在本地网络可用的位置,或者使用 file: 语法引用它以引用本地计算机上的某些内容。我不确定是否有办法可以引用类路径上的架构。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-31
      • 1970-01-01
      • 2017-07-28
      • 2019-08-05
      • 1970-01-01
      • 2022-10-14
      • 2016-09-07
      • 2015-07-25
      相关资源
      最近更新 更多