原文:SpringBoot报错:Failed to load ApplicationContext(javax.websocket.server.ServerContainer not available)

引起条件: WebSocket 单元测试,单元测试报错 解决方法: SpringBootTest增加webEnvironment参数。 https: docs.spring.io spring boot docs current reference html boot features testing.html boot features testing spring boot applicati ...

2019-01-19 17:26 0 1528 推荐指数:

查看详情

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