java spring security 3 修改权限 刷新内存

2024-12-20 19:18:58
推荐回答(1个)
回答1:

@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException {

constructWebsiteUser(username);

return userMap.getUser(username);
}