springBlade后端使用WebSocket,报错

Java 未结 7 6149
大神请教
大神请教 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条回答
  •  iceplane
    iceplane (楼主)
    2021-10-21 11:22

           

                org.springframework.boot

                spring-boot-starter-web

           


    我这边恢复了tomcat,去掉了undertow,解决了问题

提交回复