原文:Invocation of init method failed; nested exception is java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available

springboot整合websocket,测试类启动报错, 解决方式:在注解中加上webEnvironment参数,此参数的含义,参看官方文档 You can use thewebEnvironmentattribute of SpringBootTestto further refine how your tests will run: MOCK Loads aWebApplicationCo ...

2020-11-27 11:08 0 505 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM