11 Aralık 2019 Çarşamba

SpringMVC MultipartResolver Arayüzü

Giriş
Açıklaması şöyle.
MultipartResolver from the org.springframework.web.multipart package is a strategy for parsing multipart requests including file uploads
To enable multipart handling, you need to declare a MultipartResolver bean in your DispatcherServlet Spring configuration with a name of multipartResolver.
Örnek
Şöyle yaparız.
@Bean
public MultipartResolver multipartResolver() {
  return new StandardServletMultipartResolver();
}

Hiç yorum yok:

Yorum Gönder