| | |
| | | package com.ots.framework.config; |
| | | |
| | | import com.ots.framework.interceptor.RepeatSubmitInterceptor; |
| | | import com.ots.framework.interceptor.SignatureVerifyInterceptor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Bean; |
| | |
| | | private String indexUrl; |
| | | @Autowired |
| | | private RepeatSubmitInterceptor repeatSubmitInterceptor; |
| | | @Autowired |
| | | private SignatureVerifyInterceptor signatureVerifyInterceptor; |
| | | |
| | | @Override |
| | | public void addViewControllers(ViewControllerRegistry registry) { |
| | |
| | | @Override |
| | | public void addInterceptors(InterceptorRegistry registry) { |
| | | registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**"); |
| | | registry.addInterceptor(signatureVerifyInterceptor).addPathPatterns("/**"); |
| | | } |
| | | |
| | | /** |