the dependencies of some of the beans in the application context form a cycle websecurityconfig
A simple suggestion would be to change PasswordEncoder method in the
WebSecurityConfig class to 'public static' instead of it being just
a public method:
@Bean(name = "passwordEncoder")
public static PasswordEncoder passwordencoder() {
return new CustomPasswordEncoder();
}
Thank you.