解决Multiple Endpoints may not be deployed to the same path [/msg]

时间:2024-03-13 10:25:09

在启动类中注释掉

//    @Bean
//    public ServerEndpointExporter getServerEndpointExporter() {
//        return  new ServerEndpointExporter();
//    }

这样就ok 了,由于tomcat中不需要、
解决Multiple Endpoints may not be deployed to the same path [/msg]