SpringBoot 单元测试ServerContainer not available

如果SpringBoot集成了WebSocket,单元测试启动后会报如下错误: javax.websocket.server.ServerContainer not available 这是因为SpringBootTest启动时不会启动服务器,a56爆大奖在线娱乐WebSocket会报错。 这个时候需要在注解中添加
posted @ 2024-05-11 09:30  天航星  阅读(12)  评论(0编辑  收藏  举报