开启静态资源处理器配置
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user