Merge branch '4.2.x'
This commit is contained in:
@@ -37,7 +37,7 @@ public class MultipartEnvironmentPostProcessor implements EnvironmentPostProcess
|
||||
// no user set property, set it to false.
|
||||
MapPropertySource propertySource = new MapPropertySource(MULTIPART_PROPERTY_SOURCE_NAME,
|
||||
Map.of(MULTIPART_ENABLED_PROPERTY, Boolean.FALSE));
|
||||
//environment.getPropertySources().addFirst(propertySource);
|
||||
// environment.getPropertySources().addFirst(propertySource);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.cloud.gateway.server.mvc.common;
|
||||
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.mock.env.MockEnvironment;
|
||||
@@ -27,6 +28,7 @@ import static org.springframework.cloud.gateway.server.mvc.common.MultipartEnvir
|
||||
public class MultipartEnvironmentPostProcessorTests {
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
void multipartDisabledByDefault() {
|
||||
MockEnvironment environment = new MockEnvironment();
|
||||
MultipartEnvironmentPostProcessor processor = new MultipartEnvironmentPostProcessor();
|
||||
|
||||
Reference in New Issue
Block a user