How to get session time out message using Spring security

前端 未结 5 1486
悲哀的现实
悲哀的现实 2020-12-10 16:41

I want to get the session time out message when the session expires.Below is my spring-security.xml



        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 17:31

    Please define request mapping for logout-success url in your controller and from there redirect to home page. for example replace your mapping as below

    
    
    
    
        
    
    

    define this /logoutSucess in controller with @RequestMapping(value="/logoutSucess" method=RequestMethod.GET)

提交回复
热议问题