Skip to content

Commit 839b087

Browse files
Fix for issue #45001 - ServletRegistrationBean has those properties, but @ServletRegistration hasn't: initParameters, servletRegistrationBeans, multipartConfig Signed-off-by: Dmytro Danilenkov <[email protected]>
Signed-off-by: Dmytro Danilenkov <[email protected]>
1 parent fce9e44 commit 839b087

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializerBeans.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ private void configureFromAnnotation(ServletRegistrationBean<Servlet> bean, Serv
321321
bean.setAsyncSupported(registration.asyncSupported());
322322
bean.setIgnoreRegistrationFailure(registration.ignoreRegistrationFailure());
323323
bean.setLoadOnStartup(registration.loadOnStartup());
324-
325324
bean.setUrlMappings(Arrays.asList(registration.urlMappings()));
326325

327326
if (registration.initParameters().length > 0) {
@@ -339,7 +338,7 @@ private void configureFromAnnotation(ServletRegistrationBean<Servlet> bean, Serv
339338
bean.setMultipartConfig(new MultipartConfigElement(multipart.location(), multipart.maxFileSize(),
340339
multipart.maxRequestSize(), multipart.fileSizeThreshold()));
341340
}
342-
341+
343342
}
344343

345344
}

0 commit comments

Comments
 (0)