Shiro+JWT(在token封装自己想要携带的信息)
废话不多说直接上代码
ContextInfo 封装自己想要的实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContextInfo {
/**
* 运用信息
*/
private Application application;
/**
* Host
*/
private String host;
/**
* 用户信息
*/
原创
2020-11-16 14:15:50 ·
395 阅读 ·
0 评论