Spring中DWR集成有问题吗?

发布于 2024-08-07 00:27:24 字数 525 浏览 4 评论 0原文

其实这不是,我们如何整合DWR之类的。但实际上问题是我正在使用

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

几个小时前的'http://www.directwebremoting.org' 已关闭,因此我无法部署我的应用程序,现在当网站恢复时我知道此链接'http://www.directwebremoting.org/schema/spring-dwr' 不再存在。

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

Actually this is not, how can we integrate DWR and all that. But actually the problem is i am using

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

and few hours back 'http://www.directwebremoting.org' was down, so i was unable to deploy my application, And now when the site is back i got to know that this link 'http://www.directwebremoting.org/schema/spring-dwr' doesn't exist any more.

So what could be the possible resolution of this problem, Why do it connects to the specified site. And what should i do so that even if the site is down, or the link is not available, my application should be still deployable.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱*していゐ 2024-08-14 00:27:24

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

It looks like they may have moved the location of the xsd on DWR's site. You should be able to fix this by addiing the schemaLocation to your config file like so:

<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">

If you are concerned about the availability of DWR's site you could either put the schema on a location available to your local network or reference it using the file: syntax to reference something on your local machine. I'm not sure if there's a way you can reference the schema on the classpath though.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文