package com.lian.demo.controller; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration public class MyMvcConfig implements WebMvcConfigurer { @Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("/login.html").setViewName("login"); } @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new LoginHandlerInterceptor()).addPathPatterns("/**") .excludePathPatterns("/login.html","/css/**","/js/**","/charts/**","/datatable/**","/fonts/**","/images/**","/userLogin","/tozhuce","/sign","/userLogin"); } }
最近下载更多
together love LV2
3月26日
wsl566666 LV2
2月20日
3311545828 LV3
1月19日
南波万 LV1
1月17日
YhXyHx523 LV4
2023年12月24日
wuge123 LV8
2023年12月21日
gecongkai LV8
2023年12月21日
yuanshun LV6
2023年12月17日
故里逢春 LV2
2023年12月15日
592132324 LV4
2023年12月5日
最近浏览更多
阿昌先生 LV13
前天
together love LV2
3月24日
15103432984 LV2
3月16日
entity123456
3月15日
暂无贡献等级
西瓜哥哥 LV4
3月5日
escape1023
3月4日
暂无贡献等级
lyhlyh LV10
2月20日
微信网友_6874115065630720
2月20日
暂无贡献等级
森sdfgf LV8
2月8日
wsl566666 LV2
2月2日