Caused by: javax.websocket.DeploymentException: Multiple Endpoints may not be deployed to the same path [/***/**] : existing endpoint was
在tomcat中有内置的websocket,打包的时候就不需要打这个了。
解决办法:
在配置类中加入注解,声明是开发环境
@ConditionalOnProperty(name = "spring.profiles.active", havingValue = "dev")
在服务类中加入注解,指定这个配置
@ConditionalOnClass(value = WebSocketConfig.class)