美文网首页
spring boot :The temporary uplo

spring boot :The temporary uplo

作者: zhihaoZzz | 来源:发表于2018-04-19 09:53 被阅读0次

解决办法

注入对象
@Bean
    MultipartConfigElement multipartConfigElement() {
        MultipartConfigFactory factory = new MultipartConfigFactory();
        factory.setLocation("E://tomcat_file/temp");
        return factory.createMultipartConfig();
    }

或者在配置文件中添加:

spring.http.multipart.location=E://tomcat_file/temp

相关文章

网友评论

      本文标题:spring boot :The temporary uplo

      本文链接:https://www.haomeiwen.com/subject/nwiikftx.html