springboot集成websocket后单元测试报错
2020-06-03 本文已影响0人
期丨期
springboot集成websocket后单元测试报错:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverEndpointExporter' defined in class path resource [com
Caused by: java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available
@SpringBootTest(classes = {Application.class}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)