SpringFramework schema/integration/websocket 命名空间不存在

SpringFramework schema/integration/websocket namespace does not exist

我正在创建一个 SpringFramework websocket 应用程序,我正在使用 SpringFramework 网站上的示例。

当我使用 spring-integration websocket 命名空间时,我的 NetBeans IDE 警告它无法在以下位置找到 xml 定义:

http://www.springframework.org/schema/integration/websocket/spring-integration-websocket.xsd

我看了一下:

http://www.springframework.org/schema/integration/

发现没有"websocket"目录。

此定义是否已被移动或替换,或者这是出于某种原因设计的?

如果它被移动了,我在哪里可以找到它?
如果它只是从 springframework.org 网站中丢失,我在哪里可以找到副本以便我的 IDE 能够为我解析它的自动完成助手?

我们会看看为什么它不存在。因为自 Spring Integration 4.1.

以来添加了 WebSockets 支持

无论如何,IDE 应该根据 spring-integration-websocket 依赖关系确定 XSD。 XSD 位于该罐子中的 \org\springframework\integration\websocket\config\ 位置。

模式随 jar 一起提供,并列在 jar 的 META-INF/spring.schemas 文件中。 (它们不是从任何网站加载的)。

因此请确保您的类路径中有 spring-integration-websocket.jar