Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I got it to go by adding both exclude statement for the autoconfigure.security and .permitAll() on the antMatchers. Commented Apr 15, 2017 at 7:55
  • \@EnableWebSecurity is needed in the \@EnableWebSecurity protected static class SecurityConfiguration Commented Apr 19, 2017 at 21:13
  • 1
    You can also annotate a class like this with something like @Profile("nosecure") so that you can specify the profile "nosecure" until you want it turned on. Commented May 24, 2017 at 18:14
  • Not other solutions but this worked for me on SB v 2.0.0RELEASE. security.ignored=/** was also no required. Just this class was suffiecient Commented Mar 10, 2018 at 3:57
  • 2
    WebSecurityConfigurerAdapter - is deprecated. Commented Dec 27, 2022 at 20:29