开启静态资源处理器配置

This commit is contained in:
菜鸟 2020-02-24 14:28:33 +08:00
parent cb0a4b78ee
commit eccc46fdb6

View File

@ -2,6 +2,7 @@ package com.ruoyi.framework.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@ -10,10 +11,11 @@ import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor;
/**
* 通用配置
*
* 也可以直接继承 WebMvcConfigurationSupport 来实现
* @author ruoyi
*/
@Configuration
@EnableWebMvc
public class ResourcesConfig implements WebMvcConfigurer
{
@Autowired