-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf($auth-center): configure ignored service
[skip ci]
- Loading branch information
1 parent
ac7aabc
commit 78c069b
Showing
2 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.../java/com/jmsoftware/maf/authcenter/permission/configuration/PermissionConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.jmsoftware.maf.authcenter.permission.configuration; | ||
|
||
import lombok.Data; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.cloud.context.config.annotation.RefreshScope; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.validation.annotation.Validated; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotEmpty; | ||
import java.util.Set; | ||
|
||
/** | ||
* Description: PermissionConfiguration, change description here. | ||
* | ||
* @author 钟俊(zhongjun), email: zhongjun@toguide.cn, date: 2/8/2021 5:18 PM | ||
**/ | ||
@Data | ||
@Validated | ||
@RefreshScope | ||
@Configuration | ||
@ConfigurationProperties(prefix = "permission") | ||
public class PermissionConfiguration { | ||
@NotEmpty | ||
private Set<@NotBlank String> ignoredServiceIds; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters