未找到/info Spring 4 websockets的映射

未找到/info Spring 4 websockets的映射,spring,spring-4,spring-websocket,Spring,Spring 4,Spring Websocket,在spring控制器中,如果我使用@MessageMapping它正在工作,但是如果我更改为@Requestmapping(value==“”,method=RequestMethod.POST)并尝试使用SimpMessagingTemplate将消息发送到客户端,则它无法连接,它将显示错误 connecting to websockets /info request mapping not found 我从SockJS中识别/获取信息。您是否在后端使用它 在我的配置中,我在/STOMP处有

在spring控制器中,如果我使用
@MessageMapping
它正在工作,但是如果我更改为
@Requestmapping(value==“”,method=RequestMethod.POST)
并尝试使用
SimpMessagingTemplate
将消息发送到客户端,则它无法连接,它将显示错误

connecting to websockets /info request mapping not found

我从SockJS中识别/获取信息。您是否在后端使用它


在我的配置中,我在/STOMP处有一个STOMP端点,并在客户端使用SockJS进行WebSocket连接。SockJS首先向/stomp/info发出请求,以确定要建立哪种连接。

可以解释一下您要实现的目标吗?浏览器正在发送什么请求?你预计会发生什么?你能展示大量的代码示例吗?