Spring Security Java Config

前端 未结 4 638
一生所求
一生所求 2021-01-03 03:55

I\'m trying to use JavaConfig instead of XML configuration for Spring Security. I would like to use @PreAuthorization for declaring access rights.

My Sp

4条回答
  •  清歌不尽
    2021-01-03 04:07

    In my case, I have a line super.configure(auth); in the overriding method configure(AuthenticationManagerBuilder auth).

    After it was removed, the exception is gone.

提交回复
热议问题