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
Post a Comment
Post a Comment