摘要: 经查阅资料,得知SpringBootTest在启动的时候不会启动服务器,所以WebSocket自然会报错,这个时候需要添加选项webEnvironment,以便提供一个测试的web环境。如下: @RunWith(SpringRunner.class)@SpringBootTest(webEnviro 阅读全文
posted @ 2023-01-05 16:55 DaisyLinux 阅读(257) 评论(0) 推荐(0) 编辑