From 92500720a7eb88a52be72e4af00c0a8fd1f8d004 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Wed, 13 Sep 2023 10:41:35 +0200 Subject: [PATCH] Polish "Introduce configuration property for strict servlet compliance" See gh-37242 --- .../boot/autoconfigure/web/servlet/MultipartProperties.java | 4 ++-- .../web/servlet/MultipartAutoConfigurationTests.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/MultipartProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/MultipartProperties.java index 4db7ec2e1c..6e3a6ccfa2 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/MultipartProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/MultipartProperties.java @@ -81,8 +81,8 @@ public class MultipartProperties { private boolean resolveLazily = false; /** - * Whether to resolve the multipart request strictly comply with the Servlet specification, - * only kicking in for "multipart/form-data" requests. + * Whether to resolve the multipart request strictly comply with the Servlet + * specification, only to be used for "multipart/form-data" requests. */ private boolean strictServletCompliance = false; diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/MultipartAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/MultipartAutoConfigurationTests.java index 208a647ac0..edbc441d87 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/MultipartAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/MultipartAutoConfigurationTests.java @@ -182,7 +182,7 @@ class MultipartAutoConfigurationTests { this.context.register(WebServerWithNothing.class, BaseConfiguration.class); this.context.refresh(); StandardServletMultipartResolver multipartResolver = this.context - .getBean(StandardServletMultipartResolver.class); + .getBean(StandardServletMultipartResolver.class); assertThat(multipartResolver).hasFieldOrPropertyWithValue("strictServletCompliance", true); }