原文: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