1
嗨,我当前的websocket配置是。如何使用xml配置配置sockjs配置Spring 4 WebSocket
<websocket:message-broker application-destination-prefix="/app">
<websocket:stomp-endpoint path="/chat">
<websocket:sockjs></websocket:sockjs>
</websocket:stomp-endpoint>
<websocket:simple-broker prefix="/topic"/>
</websocket:message-broker>
和我的URL模式配置
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
,如果我改变模式“/”,那么它工作正常,否则 的给出错误
GET http://localhost:8080/demoapp/chat/info 404 (Not Found)
什么是错的请建议。
感谢