springsecurity过滤器优先级错误导致getAuthentication()为null

与sturts等整合的时候应放在Stuart过滤器的前面

[c-sharp] view plain copy
  1. springSecurityFilterChain
  2. class>org.springframework.web.filter.DelegatingFilterProxyclass>
  3. springSecurityFilterChain
  4. /*
  5. REQUEST
  6. FORWARD
  7. struts2CleanupFilter
  8. class>org.apache.struts2.dispatcher.ActionContextCleanUpclass>
  9. struts2
  10. class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterclass>
  11. struts2CleanupFilter
  12. /*
  13. REQUEST
  14. FORWARD
  15. struts2
  16. /*
  17. REQUEST
  18. FORWARD
  19. class>org.springframework.security.web.session.HttpSessionEventPublisherclass>

麻烦唉

[c-sharp] view plain copy
  1. springSecurityFilterChain
  2. class>org.springframework.web.filter.DelegatingFilterProxyclass>
  3. springSecurityFilterChain
  4. /*
  5. REQUEST
  6. FORWARD
  7. struts2CleanupFilter
  8. class>org.apache.struts2.dispatcher.ActionContextCleanUpclass>
  9. struts2
  10. class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterclass>
  11. struts2CleanupFilter
  12. /*
  13. REQUEST
  14. FORWARD
  15. struts2
  16. /*
  17. REQUEST
  18. FORWARD
  19. class>org.springframework.security.web.session.HttpSessionEventPublisherclass>

麻烦唉

你可能感兴趣的:(springsecurity过滤器优先级错误导致getAuthentication()为null)