public class SecurityUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
UserDetailsService implement class
ApiBoot integrates spring security user query logic implementation
| 构造器和说明 |
|---|
SecurityUserDetailsService() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username)
Query basic user information according to user name
Publish load user event event event after querying user information
|
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
Publish load user event event event after querying user information
loadUserByUsername 在接口中 org.springframework.security.core.userdetails.UserDetailsServiceusername - UserDetails.getUsername()UserDetailsorg.springframework.security.core.userdetails.UsernameNotFoundException - Throw the exception when the user does not existCopyright © 2020. All rights reserved.