How do I enable logging for Spring Security?

后端 未结 6 1465
孤独总比滥情好
孤独总比滥情好 2020-12-02 21:34

I am setting up Spring Security to handle logging users in. I have logged in as a user, and am taken to an Access Denied error page upon successful login. I don\'t know what

6条回答
  •  执笔经年
    2020-12-02 22:12

    You can easily enable debugging support using an option for the @EnableWebSecurity annotation:

    @EnableWebSecurity(debug = true)
    public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
        …
    }
    

提交回复
热议问题