springBlade后端使用WebSocket,报错

Java 未结 7 6047
大神请教
大神请教 剑者 2020-02-21 22:38
org.springframework.bootspring-boot-starter-websocket


WebSocketConfig {

   ServerEndpointExporter () {
      ServerEndpointExporter()}
}

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverEndpointExporter' defined in class path resource [org/springblade/modules/lives/gongju/WebSocketConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available


7条回答
  • 2020-07-16 09:57

    少依赖了,加一个依赖就可以

    0 讨论(2)
提交回复