All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.security.authentication.DefaultUserDetailsService Maven / Gradle / Ivy

There is a newer version: 1.2.1.RELEASE
Show newest version
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); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy