mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-03 11:24:34 +08:00
refactor: 替换过时的api
This commit is contained in:
@@ -5,6 +5,7 @@ import lombok.*;
|
||||
import org.hswebframework.web.authorization.annotation.*;
|
||||
import org.hswebframework.web.authorization.define.*;
|
||||
import org.springframework.core.annotation.AnnotatedElementUtils;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
@@ -131,7 +132,7 @@ public class DefaultBasicAuthorizeDefinition implements AopAuthorizeDefinition {
|
||||
typeDefinition.setConfiguration(dataAccessType.configuration());
|
||||
typeDefinition.setDescription(String.join("\n", dataAccessType.description()));
|
||||
}
|
||||
if (StringUtils.isEmpty(typeDefinition.getId())) {
|
||||
if (ObjectUtils.isEmpty(typeDefinition.getId())) {
|
||||
return;
|
||||
}
|
||||
definition.getDataAccess()
|
||||
|
||||
Reference in New Issue
Block a user