Skip to content

Commit ac0b3ab

Browse files
Fix for issue #45000 - 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 78ed574 commit ac0b3ab

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,31 @@
107107
MultipartConfigValues multipartConfig() default @MultipartConfigValues;
108108

109109
/**
110-
* Nested annotation that parallels the fields of {@link jakarta.servlet.annotation.MultipartConfig}.
110+
* Nested annotation that parallels the fields of
111+
* {@link jakarta.servlet.annotation.MultipartConfig}. Used within
112+
* {@link ServletRegistration#multipartConfig()}.
113+
* @see jakarta.servlet.annotation.MultipartConfig
111114
*/
112115
@Target({})
113116
@Retention(RetentionPolicy.RUNTIME)
114117
@Documented
115118
@interface MultipartConfigValues {
116119

120+
/**
121+
* @see jakarta.servlet.annotation.MultipartConfig#location()
122+
*/
117123
String location() default "";
124+
/**
125+
* @see jakarta.servlet.annotation.MultipartConfig#maxFileSize()
126+
*/
118127
long maxFileSize() default -1L;
128+
/**
129+
* @see jakarta.servlet.annotation.MultipartConfig#maxRequestSize()
130+
*/
119131
long maxRequestSize() default -1L;
132+
/**
133+
* @see jakarta.servlet.annotation.MultipartConfig#fileSizeThreshold()
134+
*/
120135
int fileSizeThreshold() default 0;
121136

122137
}

0 commit comments

Comments
 (0)