package com.c3stones.config;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import lombok.Setter;

/**
 * Web配置类
 * 
 * @author CL
 *
 */
@Configuration
@ConfigurationProperties(prefix = "security.web")
public class WebConfigurer implements WebMvcConfigurer {

	/**
	 * 忽略的URL
	 */
	@Setter
	private List<String> excludes;

	/**
	 * 配置拦截器
	 */
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new LoginInterceptor()).addPathPatterns("/**").excludePathPatterns(excludes);
	}

}
最近下载更多
ma406805131  LV19 2024年12月27日
zolscy  LV24 2024年11月26日
shuilianbing  LV6 2024年8月24日
计科一班  LV7 2024年6月18日
TY0165  LV20 2024年6月16日
lipiao161  LV16 2024年5月4日
流水本无情  LV9 2024年3月24日
wanglinddad  LV55 2024年3月18日
xiha198  LV11 2023年12月27日
1140717565  LV2 2023年12月22日
最近浏览更多
denliv_hui  LV14 8月1日
helloworldsbsb  LV8 6月25日
zt843217  LV2 5月26日
梁小贤  LV1 5月22日
15578157792  LV7 4月25日
orang801  LV2 3月4日
哪里的完整版  LV8 2月27日
huangzhijing 2月11日
暂无贡献等级
zhangtian1997  LV10 2月5日
huasir2018  LV14 1月29日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友