spring security http antMatcher with multiple paths

后端 未结 2 824
半阙折子戏
半阙折子戏 2020-12-29 22:45

I have the following spring security java config rule (with version 3.2.4) which works:

http.antMatcher(\"/lti1p/**\")
    .addFilterBefore(ltioAuthProviderP         


        
2条回答
  •  孤城傲影
    2020-12-29 23:07

    Try:

    .antMatchers("/lti1p/**").hasRole("LTI")
    .antMatchers("/lti2p/**").hasRole("LTI")
    

提交回复
热议问题