Skip to content

Commit 23e5216

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 59bbcf6 commit 23e5216

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ private void configureFromAnnotation(ServletRegistrationBean<Servlet> bean, Serv
348348

349349
}
350350

351+
/**
352+
* Parses an array of "key=value" strings into a Map.
353+
* @param initParamsArray Array of strings, expected format "key=value".
354+
* @return Map of parsed key-value pairs.
355+
* @throws IllegalArgumentException if any string doesn't match the "key=value" format.
356+
*/
351357
private Map<String, String> parseInitParameters(String[] initParamsArray) {
352358
Map<String, String> initParams = new LinkedHashMap<>();
353359
for (String kv : initParamsArray) {

0 commit comments

Comments
 (0)