| | |
| | | package cc.mrbird.febs.common.configure;
|
| | |
|
| | | import cc.mrbird.febs.common.interceptor.DappInterceptor;
|
| | | import cc.mrbird.febs.common.interceptor.LoginInterceptor;
|
| | | import org.springframework.context.annotation.Configuration;
|
| | | import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
|
| | |
| | |
|
| | | @Override
|
| | | public void addInterceptors(InterceptorRegistry registry) {
|
| | | InterceptorRegistration registration = registry.addInterceptor(new LoginInterceptor());
|
| | | registration.addPathPatterns("/api/**");
|
| | | registration.excludePathPatterns("/api/common/**");
|
| | | registration.excludePathPatterns("/trx/**");
|
| | | // InterceptorRegistration registration = registry.addInterceptor(new LoginInterceptor());
|
| | | // registration.addPathPatterns("/api/**");
|
| | | // registration.addPathPatterns("/dapp/**");
|
| | | // registration.excludePathPatterns("/api/common/**");
|
| | |
|
| | |
|
| | | InterceptorRegistration registration = registry.addInterceptor(new DappInterceptor());
|
| | | registration.addPathPatterns("/dapp/**");
|
| | | registration.excludePathPatterns("/dapp/common/**");
|
| | | }
|
| | | }
|