liusheng
2025-11-10 1872936aceb6b7148f33a04c9b2a605faf5cfd1b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.ruoyi.web.core.config;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
 
@Configuration
public class UploadConfig {
    @Bean(name = "multipartResolver")
    public MultipartResolver multipartResolver() {
        return new CommonsMultipartResolver();
    }
}