Override the ChannelProcessingFilter with Spring Security 3.0.5 does not work

后端 未结 3 868
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 03:17

The default behavior of the Channel Processors is to do a sendRedirect (which is redirect temporary with 302 code). I need to change this behavior so that a permanent (301) redi

3条回答
  •  情话喂你
    2021-02-06 03:52

    Solution:

    The issue is that we cannot have both the security:http as well as the myChannelProcessingFilter (the one I had overridden) to deal with the access argument of the security:intercept-url, hence I removed the http tag and added the access thing in the myChannelProcessingFilter, where I wanted it to process. The XML that resolved it is follows

    
    
    
    
        
        
    
            
    
            
            
            
    
    
        
    
        
          
          
            
                
                
            
          
        
    
        
            
                
                    
                    
                
            
        
    
        
            
        
    
        
            
        
    
        
        
    
    
    

提交回复
热议问题