相关文章推荐
威武的冰棍  ·  WPF ...·  1 年前    · 
爱笑的桔子  ·  nvm use error exit ...·  1 年前    · 
重感情的冲锋衣  ·  Intent.ExtraAllowMulti ...·  1 年前    · 
笑点低的松球  ·  git log --after ...·  2 年前    · 
filterChainDefinitionMap: { "[ /advertising/* ]" : 'perms[公告管理]', "[ /hotelmanagement/* ]" : 'perms[入住管理]', "[ /broadband/* ]" : 'perms[报装报修]', "[ /yellowpages/* ]" : 'perms[黄页管理]'}

创建配置类

package com.yblue.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.Map;
 * 权限过滤
@Component
@Data//导入lombok依赖
@
ConfigurationProperties(prefix = "filter")
public class FilterProperties { private Map
<String, String> filterChainDefinitionMap; }

想看更多精彩内容,可以关注我的CSDN

我的CSDN