Why is Spring Security working in Tomcat but not when deployed to Weblogic?

前端 未结 4 952
野性不改
野性不改 2021-01-03 00:03

I\'m not really a Java developer, but a project for a client has required me to be, so maybe I\'m missing something glaringly obvious.

I\'m using SpringBoot and ever

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 00:56

    I think you need to add the securityContextPersistenceFilter in the filter chain

    
    

    I found the following comment in the SecurityContextPersistenceFilter class :

     * This filter will only execute once per request, to resolve servlet container (specifically Weblogic)
     * incompatibilities.
    

提交回复
热议问题