-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to auto configure MultipartConfigElement? #315
Comments
@mayur9991 I guess you are asking the if (multipartConfig != null) {
reg.setMultipartConfig(new MultipartConfigElement(multipartConfig));
} |
I expected it to auto configure as spring does it with |
With my understanding the |
I'm looking at the detail implementations between |
I have checked the implementation of: https://github.com/resteasy/resteasy-spring-boot/blob/main/servlet/resteasy-servlet-spring-boot-starter/src/main/java/org/jboss/resteasy/springboot/ResteasyBeanProcessorTomcat.java And seems it doesn't have the similar logic in: final MultipartConfig multipartConfig = applicationClass.getAnnotation(MultipartConfig.class);
if (multipartConfig != null) {
reg.setMultipartConfig(new MultipartConfigElement(multipartConfig));
} I will think about a solution on this. |
Spring Boot includes MultipartAutoConfiguration, which automatically configures the MultipartConfigElement on the Spring Dispatcher Servlet.
Could you provide guidance on configuring this feature when using the Resteasy Spring Boot Starter?
The text was updated successfully, but these errors were encountered: