-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
@WebServlet registered with ServletComponentScan does not honor @MultipartConfig annotation #6680
Comments
That sounds more than likely. What behaviour have you observed that made you realise that |
HttpServletRequest.getParts() returns null, and If I remove the @WebServlet and @MultipartConfig annotation and add the tor. 18. aug. 2016 kl. 10.45 skrev Andy Wilkinson <notifications@github.com
|
Interesting. That's not what I expected. In both cases the |
Yes, but I have to add this line when registering the servlet in the
MultipartConfigElement((String) null)); I suspect the annotation on the servlet class does not cause this I'll provide a test case if you can't see any obvious errors in the code. tor. 18. aug. 2016 kl. 11.47 skrev Andy Wilkinson <notifications@github.com
|
No, that's fine. Thanks. I think I have all the info I need now |
I have recently migrated an war-application to Spring Boot 1.4. The servlets are registered using ServletComponentScan.
The servlets that are annotated with @MultipartConfig do not decode multipart data. It seems the @MultipartConfig annotation is not honored for servlets registered through ServletComponentScan.
The text was updated successfully, but these errors were encountered: