|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2016 the original author or authors. |
| 2 | + * Copyright 2002-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
43 | 43 | import org.springframework.core.io.Resource;
|
44 | 44 | import org.springframework.core.io.ResourceEditor;
|
45 | 45 | import org.springframework.core.io.ResourceLoader;
|
| 46 | +import org.springframework.core.io.WritableResource; |
46 | 47 | import org.springframework.core.io.support.ResourceArrayPropertyEditor;
|
47 | 48 | import org.springframework.core.io.support.ResourcePatternResolver;
|
48 | 49 |
|
@@ -102,6 +103,7 @@ public void registerCustomEditors(PropertyEditorRegistry registry) {
|
102 | 103 | ResourceEditor baseEditor = new ResourceEditor(this.resourceLoader, this.propertyResolver);
|
103 | 104 | doRegisterEditor(registry, Resource.class, baseEditor);
|
104 | 105 | doRegisterEditor(registry, ContextResource.class, baseEditor);
|
| 106 | + doRegisterEditor(registry, WritableResource.class, baseEditor); |
105 | 107 | doRegisterEditor(registry, InputStream.class, new InputStreamEditor(baseEditor));
|
106 | 108 | doRegisterEditor(registry, InputSource.class, new InputSourceEditor(baseEditor));
|
107 | 109 | doRegisterEditor(registry, File.class, new FileEditor(baseEditor));
|
|
0 commit comments