springboot websocket sockjs 服务器推送 跨域问题 解决办法
public void registerStompEndpoints(StompEndpointRegistry registry) {
// registry.addEndpoint("/my-websocket").withSockJS();
registry.addEndpoint("/my-websocket").setAllowedOrigins("*").withSockJS();
}
参考资料http://blog.csdn.net/zhou4700219/article/details/53518788
SpringWebsocket +Stomp+SockJS实现消息订阅和推送