Disable Basic Authentication while using Spring Security Java configuration

前端 未结 6 1752
渐次进展
渐次进展 2020-12-01 12:55

I am trying to secure a web application using Spring Security java configuration.

This is how the configuration looks:-



        
6条回答
  •  囚心锁ツ
    2020-12-01 13:31

    In case you use Spring Boot, the documentation states:

    To switch off the Boot default configuration completely in a web application you can add a bean with @EnableWebSecurity

    So if you want to fully customize itself that might be an option.

    Just to make it clear... You just need to put @EnableWebSecurity annotation on your main application class or application configuration class.

提交回复
热议问题