Caused by: java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available 构建报

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

首先确认是springboot的项目,项目中用到websocket,导致构建失败,按如下方法解决

然后在标签下的标签中加入true


    UTF-8
    UTF-8
    1.8
    5.1.38
    ...
    true

     
    
    

构建成功

你可能感兴趣的:(Caused by: java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available 构建报)