@Service
public class UserDetailsServiceImpl
extends java.lang.Object
implements org.springframework.security.core.userdetails.UserDetailsService
| Modifier and Type | Field and Description |
|---|---|
private UserRepo |
userRepository |
| Constructor and Description |
|---|
UserDetailsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities(java.lang.String role) |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(java.lang.String username) |
private final UserRepo userRepository
@Transactional(readOnly=true) public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(java.lang.String username)
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceprivate java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities(java.lang.String role)