mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-20 14:56:06 +08:00
优化配置
This commit is contained in:
@@ -26,6 +26,11 @@
|
||||
<artifactId>spring-boot-starter-aop</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webmvc</artifactId>
|
||||
|
||||
@@ -13,6 +13,7 @@ import org.hswebframework.web.authorization.define.Script;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
@@ -33,13 +34,13 @@ public class DefaultBasicAuthorizeDefinition implements AuthorizeDefinition {
|
||||
|
||||
private String[] actionDescription = {};
|
||||
|
||||
private Set<String> permissions = new HashSet<>();
|
||||
private Set<String> permissions = new LinkedHashSet<>();
|
||||
|
||||
private Set<String> actions = new HashSet<>();
|
||||
private Set<String> actions = new LinkedHashSet<>();
|
||||
|
||||
private Set<String> roles = new HashSet<>();
|
||||
private Set<String> roles = new LinkedHashSet<>();
|
||||
|
||||
private Set<String> user = new HashSet<>();
|
||||
private Set<String> user = new LinkedHashSet<>();
|
||||
|
||||
private Script script;
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"properties": [
|
||||
{
|
||||
"name": "hsweb.authorize.auto-parse",
|
||||
"type": "java.lang.Boolean",
|
||||
"defaultValue": "false",
|
||||
"description": "是否自动解析代码中的权限定义信息并触发AuthorizeDefinitionInitializedEvent事件."
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user