spring webSocket The HTTP response from the server [200] did not permit the HTTP upgrade to WebSocket

在springboot 1.5.9版本

WebSocketConfig配置
registry.addEndpoint("/webSocket").withSockJS();
在加了.withSockJS()之后导致错误:The HTTP response from the server [200] did not permit the HTTP upgrade to WebSocket
去掉之后就好了

posted on 2018-02-22 11:27  层林尽染  阅读(3221)  评论(0)    收藏  举报

导航