How do I enable logging for Spring Security?

后端 未结 6 1480
孤独总比滥情好
孤独总比滥情好 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:18

    Basic debugging using Spring's DebugFilter can be configured like this:

    @EnableWebSecurity
    public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
    
        @Override
        public void configure(WebSecurity web) throws Exception {
            web.debug(true);
        }
    }
    

提交回复
热议问题