fatcheung
V2EX  ›  问与答

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

  •  
  •   fatcheung · Feb 26, 2018 · 4269 views
    This topic created in 3023 days ago, the information mentioned may be changed or developed.

    会报这个错:
         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 replies    2018-12-04 20:17:35 +08:00
    fatcheung
        1
    fatcheung  
    OP
       Feb 27, 2018
    。。。。没有人用过吗?
    svt
        2
    svt  
       Dec 4, 2018
    我也遇到同样问题了。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2892 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:13 · PVG 17:13 · LAX 02:13 · JFK 05:13
    ♥ Do have faith in what you're doing.