diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java index 4cb040985c..c735ab1e14 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java @@ -72,9 +72,9 @@ class WebServletHandler extends ServletComponentHandler { return null; } return new MultipartConfigElement((String) attributes.get("location"), - (long) attributes.get("maxFileSize"), - (long) attributes.get("maxRequestSize"), - (int) attributes.get("fileSizeThreshold")); + (Long) attributes.get("maxFileSize"), + (Long) attributes.get("maxRequestSize"), + (Integer) attributes.get("fileSizeThreshold")); } }