优化配置

This commit is contained in:
zhou-hao
2017-11-30 22:17:12 +08:00
parent b2a6ee510a
commit 1e4da418f4
14 changed files with 61 additions and 9 deletions

View File

@@ -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>

View File

@@ -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;

View File

@@ -0,0 +1,10 @@
{
"properties": [
{
"name": "hsweb.authorize.auto-parse",
"type": "java.lang.Boolean",
"defaultValue": "false",
"description": "是否自动解析代码中的权限定义信息并触发AuthorizeDefinitionInitializedEvent事件."
}
]
}