public class Principal extends Object
Constructor and Description |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
static CurrentUser |
getCurrentUse() |
static CurrentUser |
getPrincipal()
获取当前用户对象
|
static org.apache.shiro.session.Session |
getSession()
当前session
|
static org.apache.shiro.subject.Subject |
getSubject()
获取用户主题
|
public static org.apache.shiro.subject.Subject getSubject()
public static CurrentUser getPrincipal()
public static org.apache.shiro.session.Session getSession()
public static CurrentUser getCurrentUse()
Copyright © 2019. All rights reserved.