|
|
|
@ -4,6 +4,8 @@ import au.com.royalpay.payment.manage.permission.manager.ManagerUserInterceptor;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.RequestInfoInterceptor;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.alipay.AlipayUserInterceptor;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.wechat.WechatUserInterceptor;
|
|
|
|
|
import au.com.royalpay.payment.tools.secure.impls.ApplyFirewallCheckInterceptor;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
@ -25,16 +27,20 @@ public class WebConfiguration extends WebMvcConfigurerAdapter {
|
|
|
|
|
private AlipayUserInterceptor alipayUserInterceptor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
|
|
registry.addInterceptor(requestInfoInterceptor);
|
|
|
|
|
registry.addInterceptor(managerUserInterceptor);
|
|
|
|
|
registry.addInterceptor(wechatUserInterceptor);
|
|
|
|
|
registry.addInterceptor(alipayUserInterceptor);
|
|
|
|
|
registry.addInterceptor(applyFirewallCheckInterceptor());
|
|
|
|
|
super.addInterceptors(registry);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
public ApplyFirewallCheckInterceptor applyFirewallCheckInterceptor() {
|
|
|
|
|
return new ApplyFirewallCheckInterceptor();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|