builder:Rule{sProperties}: load properly
This commit is contained in:
parent
4a7a2871ac
commit
81bb3c02c4
2 changed files with 4 additions and 5 deletions
|
@ -18,7 +18,7 @@ import java.util.Map;
|
||||||
@ToString
|
@ToString
|
||||||
@Setter
|
@Setter
|
||||||
@Getter
|
@Getter
|
||||||
class Rule {
|
public class Rule {
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.List;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Properties defining the enabled rules for each level.
|
* Properties defining the enabled rules for each level.
|
||||||
|
@ -18,8 +17,8 @@ import java.util.Set;
|
||||||
@Setter
|
@Setter
|
||||||
@Getter
|
@Getter
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConfigurationProperties(prefix = "rules")
|
@ConfigurationProperties
|
||||||
class RulesProperties {
|
class RulesProperties {
|
||||||
|
|
||||||
public Set<Rule> rules = new HashSet<>();
|
public List<Rule> rules;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue