我在我的应用程序中实现了websockets。我从jHipster生成的应用程序中复制了配置和依赖项,但我收到以下错误: java.lang.IllegalArgumentException: No 'javax.websocket.server.ServerContainer' ServletContext attribute.was aborted by the software in your host machine 我认为这些错误是套接字连
我使用springboot来设置我的websocket端点和angularJs来连接到我的端点。这是我以前做过的,在那一次也很好。但现在当我在新项目中做这件事时。这给了我握手的错误。下面是地形码:@Configurationpublic class WebSocketConfig implementsregistry.setApplicationDestinationPrefixes
我想创建一个基于示例的WebSocket。唯一的问题是我在嵌入式tomcat中运行我的应用程序。映射位于/websocket/*
从日志中看,spring-websocket似乎已经成功初始化,但是当我尝试连接到websocket时,却得到了这个错误。/socket; nested exception is java.lang.IllegalArgumentException: No 'javax.websocket.server