| | |
| | |
|
| | | import cc.mrbird.febs.common.interceptor.LoginInterceptor;
|
| | | import org.springframework.context.annotation.Configuration;
|
| | | import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
| | | import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
|
| | | import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
| | | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
| | |
| | | registration.excludePathPatterns("/api/xcxPay/rechargeCallBack");
|
| | | registration.excludePathPatterns("/api/wechat/reply/event");
|
| | | }
|
| | |
|
| | | /**
|
| | | * 设置cors跨域支持
|
| | | *
|
| | | * @param registry
|
| | | */
|
| | | @Override
|
| | | public void addCorsMappings(CorsRegistry registry) {
|
| | | registry.addMapping("/**")
|
| | | .allowedOrigins("*")
|
| | | .allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS")
|
| | | .allowCredentials(true).maxAge(3600);
|
| | | }
|
| | | }
|