[测评系统]--测评系统核心代码库
wzp
2025-08-01 95eb8a2a75cbeebcb3393d404c1952bd59b8989a
src/main/java/com/ots/framework/config/ResourcesConfig.java
@@ -1,6 +1,7 @@
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;
@@ -17,6 +18,8 @@
    private String indexUrl;
    @Autowired
    private RepeatSubmitInterceptor repeatSubmitInterceptor;
    @Autowired
    private SignatureVerifyInterceptor signatureVerifyInterceptor;
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
@@ -35,6 +38,7 @@
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**");
        registry.addInterceptor(signatureVerifyInterceptor).addPathPatterns("/**");
    }
    /**