Spring 弹簧应用程序在tomcat 7.0.47中未加载,但在tomcat 7.0.34中加载

Spring 弹簧应用程序在tomcat 7.0.47中未加载,但在tomcat 7.0.34中加载,spring,spring-websocket,Spring,Spring Websocket,我在SpringWebSockets文档中看到了20.4.11配置和性能下的以下代码。我很惊讶没有方法,也没有类WebSocketTransportRegistration。我使用的是SpringWebSockets 4.0.2.0版本 @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Overr

我在SpringWebSockets文档中看到了20.4.11配置和性能下的以下代码。我很惊讶没有方法,也没有类
WebSocketTransportRegistration
。我使用的是SpringWebSockets 4.0.2.0版本

@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {

    @Override
    public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
        registration.setSendTimeLimit(15 * 1000).setSendBufferSizeLimit(512 * 1024);
    }

    // ...
}

我缺少什么?

WebSocketTransportRegistration仅在4.0.3版本中添加,因此您需要更新项目以使用该版本(或更高版本)。

太好了,请告诉我您的情况。