首页>代码>Spring boot 整合JWT + Security实现用户登录授权认证>/jpa-jwt-demo/src/main/java/com/gbq/jpa/jwt/demo/bean/User.java
package com.gbq.jpa.jwt.demo.bean; import lombok.Data; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import javax.persistence.*; import java.util.Collection; @Data @Entity @Table(name = "user") public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @Column(nullable = false) private String username; @Column(nullable = false) private String password; }


haitianjiaoyu0 LV8
5月27日
15719908287 LV10
2024年11月1日
微信网友_7134912998903808 LV15
2024年9月12日
dapeng0011 LV15
2024年7月13日
taoshen95 LV16
2024年5月15日
简约时尚 LV13
2024年1月16日
lyws1986 LV17
2023年10月29日
王雲飞 LV7
2023年8月24日
ewan007 LV30
2023年7月3日
zzh081401
2023年6月30日
暂无贡献等级