公司服务器用的是resin 4.0.44,由于之前一直使用tomcat,所有本地测试还是用的tomcat。

现在项目新需求需要用到websocket,于是就使用了spring-websocket封装好的api,本地开发一切顺利,

于是开始上线上测试环境了,这时resin和spring-websocket之间的矛盾就出现了!

java.lang.IllegalStateException: No suitable default RequestUpgradeStrategy found

百度是没希望解决了,于是科学上网找谷歌,得到如下结果:(地址:https://jira.spring.io/browse/SPR-14910)

看来resin+spring-socket是没戏了,现在准备放弃spring-scoket,毕竟现在无法放弃resin!直接使用resin封装好的api来实现websocket

 

posted on 2018-03-13 10:33  断肠夕阳丿  阅读(402)  评论(0编辑  收藏  举报