Fix occassional error:
 "java.lang.IllegalStateException: Cannot apply org.springframework.security.config.annotation.authentication.configurers.userde‌​tails.DaoAuthenticationConfigurer"....