Use lazy loading for resolve circular dependency issue
@@ -22,6 +22,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.context.annotation.Lazy;
import org.springframework.security.authentication.AuthenticationServiceException;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
@@ -69,6 +70,7 @@ public class NGrinderAuthenticationProvider extends AbstractUserDetailsAuthentic
@Autowired
@Qualifier("reflectionSaltSource")
+ @Lazy
private SaltSource saltSource;
@Autowired
