对于使用tomcat运行war包项目,报错javax.websocket.DeploymentException: Multiple Endpoints may not be deployed或者
ServerEndpointExporter报错,请把
@Configuration public class WebSocketConfig { @Bean public ServerEndpointExporter serverEndpointExporter() { return new ServerEndpointExporter(); } } 方法中的注解@Configuration 注释掉即可,不要把全部代码注释,我把全部代码注释仍然报错!