public class DefaultSecurityStoreDelegate extends Object implements SecurityStoreDelegate
SecurityStoreDelegate default implement
Query UserDetails according to the agreed default table structure
| 构造器和说明 |
|---|
DefaultSecurityStoreDelegate(DataSource dataSource)
Initialize
DataSource with constructor |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username)
Query
UserDetails
Query the user information in the "api_boot_user_info" table by default |
public DefaultSecurityStoreDelegate(DataSource dataSource)
DataSource with constructordataSource - dataSourcepublic org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
UserDetails
Query the user information in the "api_boot_user_info" table by default
loadUserByUsername 在接口中 SecurityStoreDelegateusername - UserDetails.getUsername()DefaultSecurityUserDetailsorg.springframework.security.core.userdetails.UsernameNotFoundException - Throw the exception when the user does not existCopyright © 2020. All rights reserved.