You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for issue #45001 - ServletRegistrationBean has those properties, but @ServletRegistration hasn't: initParameters, servletRegistrationBeans, multipartConfig Signed-off-by: Dmytro Danilenkov <[email protected]>
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializerBeans.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistration.java
+5-40Lines changed: 5 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -91,49 +91,14 @@
91
91
intloadOnStartup() default -1;
92
92
93
93
/**
94
-
* Init parameters to set on the servlet, as {@code "key=value"} pairs.
94
+
* Init parameters to set on the servlet (mirrors {@code @WebInitParam} usage).
95
+
* @return array of {@link WebInitParam}
95
96
*/
96
-
String[] initParameters() default {};
97
+
WebInitParam[] initParameters() default {};
97
98
98
99
/**
99
-
* (Optional) Additional servlet-registration beans to apply.
100
-
* Usually left empty unless you need custom bean logic.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/ServletContextInitializerBeansTests.java
0 commit comments