| | |
| | | |
| | | import com.gkhy.assess.framework.interceptor.LogInterceptor; |
| | | import com.gkhy.assess.framework.interceptor.RepeatSubmitInterceptor; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Configuration; |
| | |
| | | |
| | | |
| | | @Configuration |
| | | // 指定要扫描的Mapper类的包的路径 |
| | | @MapperScan("com.gkhy.**.mapper") |
| | | public class MyWebMvcConfig implements WebMvcConfigurer { |
| | | @Value("${image.upload_path}") |
| | | private String uploadPath; |
| | |
| | | registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**"); |
| | | |
| | | } |
| | | |
| | | } |