Shiro complaining “There is no session with id xxx” with DefaultSecurityManager

前端 未结 3 1770
青春惊慌失措
青春惊慌失措 2021-02-19 22:47

I\'m using Apache Shiro 1.2.0 in a long-running application that reads messages from a queue and and takes action. The action taken requires a Shiro authenticated session, so I

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-19 23:02

    We can disable the session storage in shiro.

    The org.apache.shiro.mgt.DefaultSessionStorageEvaluator class contains a flag called sessionStorageEnabled. We can make it false.

    I use the following in my spring application context for not using session storage.

    
            
    

    
            
        
    

提交回复
热议问题