V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fatcheung
V2EX  ›  问与答

求问, websocket(stomp)向服务器发送消息时,后端方法怎么获取 shiro 的 session?用的是 springboot。

  •  
  •   fatcheung · 2018-02-26 16:59:28 +08:00 · 3482 次点击
    这是一个创建于 2248 天前的主题,其中的信息可能已经有所发展或是发生改变。

    会报这个错:
         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.


    如果用正常请求的话就可以,即通过 controller 访问。

    2 条回复    2018-12-04 20:17:35 +08:00
    fatcheung
        1
    fatcheung  
    OP
       2018-02-27 15:42:11 +08:00
    。。。。没有人用过吗?
    svt
        2
    svt  
       2018-12-04 20:17:35 +08:00
    我也遇到同样问题了。。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   985 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:35 · PVG 05:35 · LAX 14:35 · JFK 17:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.