mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-09 09:24:03 +08:00
增加cloud。等待完善
This commit is contained in:
@@ -43,7 +43,7 @@ public interface Authentication extends Serializable {
|
||||
* //如果权限信息不存在将抛出{@link NoSuchElementException}建议使用下面的方式获取
|
||||
* Authentication auth=Authentication.current().orElse(null);
|
||||
* //或者
|
||||
* Authentication auth=Authentication.current().orElseThrow(AuthorizeException::new);
|
||||
* Authentication auth=Authentication.current().orElseThrow(UnAuthorizedException::new);
|
||||
* </pre>
|
||||
*
|
||||
* @return 返回Optional对象进行操作
|
||||
|
||||
Reference in New Issue
Block a user