0

其实这不是,我们如何集成 DWR 和所有这些。但实际上问题是我正在使用

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

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

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

4

1 回答 1

0

看起来他们可能已经在 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:语法来引用它以引用本地计算机上的某些内容。我不确定是否有办法可以引用类路径上的模式。

于 2009-10-18T19:33:19.060 回答