Skip to content

Commit

Permalink
re-adding @primary annotation in UserDetailsServiceImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
hylstonnb committed Aug 1, 2023
1 parent 7cbe1a5 commit 1762462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import com.box.l10n.mojito.service.security.user.UserRepository;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/** @author wyau */
@Primary
@Service
public class UserDetailsServiceImpl implements UserDetailsService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,4 @@ String[] getHeathcheckPatterns() {
}
return patterns.toArray(new String[patterns.size()]);
}

}

0 comments on commit 1762462

Please sign in to comment.