SEARCH BY

All

  • All
  • Java8
  • Spring

Spring Security Error: java.lang.IllegalStateException: Can't configure anyRequest after itself

Post a Comment

You should not call super.configure(http) 

since you want to use a custom security configuration.


The error is caused because the parent configure(http) method is already calling .authorizeRequests().anyRequest().authenticated() and as the error message mentions

Can't configure anyRequest after itself


Source: https://stackoverflow.com/questions/59004025/spring-security-error-java-lang-illegalstateexception-cant-configure-anyreque  

jaya
I love software designing, coding, writing and teaching...

Share this article

Related Posts

Post a Comment

Place your code in <em> </em> tags to send in comments | Do not add hyper links in commnet

Close

Subscribe our newsletter for the latest articles directly into your email inbox