讨论区 » AAS-V10敏捷版 »
内嵌版运行报No suitable default RequestUpgradeStrategy found的问题
由 huang junrui 在 将近 4 年 之前添加
异常信息:BeanCreationException: Error creating bean with name 'webSocketHandlerMapping' defined in class path resource [org/springframework/web/socket/config/annotation/DelegatingWebSocketConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: Factory method 'webSocketHandlerMapping' threw exception; nested exception is java.lang.IllegalStateException: No suitable default RequestUpgradeStrategy found
版本号:
解决时间:2021-08-30
解决方案:引入v10敏捷的websocket依赖
<dependency>
<groupId>com.apusic</groupId>
<artifactId>aams-spring-boot-websocket-starter</artifactId>
<version>2.1.7.RELEASE</version>
</dependency>
界面现象:
日志截图:
解决操作: