package com.project.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.*; /** * @author: liangrenren * @date: 2021-03-04 11:30 **/ @Configuration public class LoginConfig extends WebMvcConfigurationSupport { @Value("${upload}") private String upload; @Override public void addInterceptors(InterceptorRegistry registry) { InterceptorRegistration registration = registry.addInterceptor(new AdminInterceptor()); registration.addPathPatterns("/**"); registration.excludePathPatterns( "/user/login", "/user/getVerificationCode", "/upload/**", "/user/addCompany", "/image/**", "/js/**", "/lib/**", "/index.html"); } @Override protected void addResourceHandlers(ResourceHandlerRegistry registry) { super.addResourceHandlers(registry); registry.addResourceHandler("/**").addResourceLocations("classpath:/META-INF/resources/") .addResourceLocations("classpath:/static/"); registry.addResourceHandler("/upload/**").addResourceLocations("file:" + upload); } }

sgrfsgrts LV2
5月15日
微信网友_6631309708414976 LV5
4月26日
SX520886 LV6
4月24日
微信网友_6979151039729664 LV2
4月4日
lipiao161 LV16
3月16日
微信网友_6520355827929088 LV2
2月28日
dane168 LV8
2月17日
微信网友_7041036943331328 LV7
1月2日
BlackList LV6
1月2日
ma406805131 LV19
2024年12月26日

浙江螃蟹 LV7
25分钟前
3334004690 LV11
6月28日
helloworldsbsb LV8
6月25日
yifeng868 LV9
6月23日
xiaotao555555 LV3
6月20日
微信网友_7556426066169856
6月16日
暂无贡献等级
liqingzhao6 LV12
6月15日
Maomaoyun
6月12日
暂无贡献等级
小小可爱
6月11日
暂无贡献等级
潜心小白来到 LV3
6月10日