做测试的时候遇到了问题,报错一堆
主要看到这个
Error creating bean with name ‘serverEndpointExporter’ defined in class path resource
[路径名字/websocket/config/WebSocketConfig.class]: Invocation of init method]
测试类加这个
@SpringBootTest(webEnvironment=SpringBootTest.WebEnvironment.RANDOM_PORT)