Spring Security User Details Service must be set Error

Just i dont understand, why customUserDetailsService doesn't autowire There are 2 classes i use @Service("customUserDetailsService") public class CustomUserDetailsService implements UserDetailsService { private static final Logger log = LoggerFactory.getLogger(CustomUserDetailsService.class); private UserService…

0 Comments

Spring Security Filter Chain Threw Java Lang Illegal Argument Exception Providers List Cannot Contain Null Values

following stack trace ans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.IllegalArgumentException: providers list cannot contain null values at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] ...…

0 Comments