Java jakarta.websocket.server.ServerContainer not available(已解决)

在SpringBoot做测试用例,遇到如下报错

jakarta.websocket.server.ServerContainer not available

测试类的注解修改如下:

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)

你可能感兴趣的:(Java,java,websocket)