相关文章推荐
时尚的牛肉面  ·  Core: Access ...·  6 月前    · 
深情的青蛙  ·  Are you not a robot?·  7 月前    · 
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