You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
546 B
23 lines
546 B
package cc.bnblogs.springsecurity.pojo; |
|
|
|
import lombok.Data; |
|
|
|
import java.io.Serializable; |
|
|
|
@Data |
|
public class MyUser implements Serializable { |
|
|
|
private static final long serialVersionUID = 7225349028293972637L; |
|
|
|
private String userName; |
|
|
|
private String password; |
|
// 用户未过期 |
|
private boolean accountNonExpired = true; |
|
// 用户未锁定 |
|
private boolean accountNonLocked= true; |
|
// 权限认证未过期 |
|
private boolean credentialsNonExpired= true; |
|
// 用户可用 |
|
private boolean enabled= true; |
|
} |