Answers for "the dependencies of some of the beans in the application context form a cycle websecurityconfig"

0

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.
Posted by: Guest on February-18-2022

Code answers related to "the dependencies of some of the beans in the application context form a cycle websecurityconfig"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language