Spring Boot应用程序中的Web套接字身份验证和授权

时间:2020-04-17 08:53:27

标签: spring-boot spring-websocket

我按照下面提到的链接中的确切步骤进行操作,以在Spring Boot中验证和授权Websocket连接。

Websocket Authentication and Authorization in Spring

我在创建版本时遇到了异常

原因:org.springframework.beans.factory.BeanCreationException:创建文件[/home/user/Documents/workspace-spring-tool-suite-4-4.4。]中定义的名称为'authChannelInterceptorAdapter'的bean时出错。 2.RELEASE / test-api / target / classes / com / test / websocket / AuthChannelInterceptorAdapter.class]:初始化方法的调用失败;嵌套的异常是java.lang.IllegalStateException:需要'cacheOperationSources'属性:如果没有可缓存的方法,则不要使用缓存方面。

我试图找到解决此错误的方法,但一无所获。

如果有人有解决方案,请分享,因为我在过去3-4天停留在这一点上。

谢谢。

0 个答案:

没有答案