Spring-websocket 和 SSM+shiro 整合时
在WebSocketHandler 里的afterConnectionEstablished 方法里调用  Subject subject = SecurityUtils.getSubject();
报异常:
org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.网上目前说的添加过滤器的方法都实验过了,不好用。
我的感觉WebSocketHandler  但是单独启动的一个线程,这个线程没有在SecurityManager 里的范围里。其他Controller和service 都没有问题。求助!!!