com.healthy.common.security.authentication.DefaultUserDetailsService Maven / Gradle / Ivy
package com.healthy.common.security.authentication;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
/**
* The default DefaultUserDetailsService implementation
*
* Users need to implement their own DefaultUserDetailsService.
*
* @author xiaomingzhang
*/
@Slf4j
public class DefaultUserDetailsService implements UserDetailsService {
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
log.debug("请配置 UserDetailsService 接口的实现.");
throw new UsernameNotFoundException(username);
}
}