Spring 4 MVC and Websockets – No suitable default RequestUpgradeStrategy

                     Spring 4 MVC and Websockets – No suitable default RequestUpgradeStrategy

出错解决方法:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name

‘org.springframework.web.socket.server.support.DefaultHandshakeHandler#0’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.socket.server.support.DefaultHandshakeHandler]: Constructor threw exception; nested exception is java.lang.IllegalStateException: No suitable default RequestUpgradeStrategy found

升级tomcate的版本,解决问题。

发表评论

电子邮件地址不会被公开。 必填项已用*标注