Spring 弹簧踩踏websockets错误踩踏WebSocketHandlerMapping

Spring 弹簧踩踏websockets错误踩踏WebSocketHandlerMapping,spring,Spring,我想通过我的web应用程序(spring)的套接字进行通信。我是按照文件,但我得到了这个错误。有什么问题? 创建名为“stompwebsockethasdlermapping”的bean时出错,该名称在类路径资源中定义解决方案对于任何获得此错误的人,我替换了这些依赖项 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-websocket<

我想通过我的web应用程序(spring)的套接字进行通信。我是按照文件,但我得到了这个错误。有什么问题?
创建名为“stompwebsockethasdlermapping”的bean时出错,该名称在类路径资源中定义

解决方案对于任何获得此错误的人,我替换了这些依赖项

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-websocket</artifactId>
    <version>4.2.4.RELEASE</version>
</dependency>

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-messaging</artifactId>
    <version>4.2.4.RELEASE</version>
</dependency>

org.springframework
弹簧网袋
4.2.4.1发布
org.springframework
spring消息
4.2.4.1发布
为此:

<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-websocket</artifactId>
</dependency>

org.springframework.boot
弹簧靴起动器网箱