Skip to content

Commit 9250072

Browse files
committed
Polish "Introduce configuration property for strict servlet compliance"
See gh-37242
1 parent 05b87c5 commit 9250072

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public class MultipartProperties {
8181
private boolean resolveLazily = false;
8282

8383
/**
84-
* Whether to resolve the multipart request strictly comply with the Servlet specification,
85-
* only kicking in for "multipart/form-data" requests.
84+
* Whether to resolve the multipart request strictly comply with the Servlet
85+
* specification, only to be used for "multipart/form-data" requests.
8686
*/
8787
private boolean strictServletCompliance = false;
8888

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/MultipartAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void configureStrictServletCompliance() {
182182
this.context.register(WebServerWithNothing.class, BaseConfiguration.class);
183183
this.context.refresh();
184184
StandardServletMultipartResolver multipartResolver = this.context
185-
.getBean(StandardServletMultipartResolver.class);
185+
.getBean(StandardServletMultipartResolver.class);
186186
assertThat(multipartResolver).hasFieldOrPropertyWithValue("strictServletCompliance", true);
187187
}
188188

0 commit comments

Comments
 (0)