Skip to content

Commit dde6527

Browse files
committed
Add deprecated metadata for multipart
See gh-10076
1 parent 1fefe24 commit dde6527

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

Diff for: spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

+58
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,64 @@
799799
"deprecation": {
800800
"level": "error"
801801
}
802+
},
803+
{
804+
"name" : "spring.http.multipart.enabled",
805+
"type" : "java.lang.Boolean",
806+
"description" : "Enable support of multipart uploads.",
807+
"defaultValue" : true,
808+
"deprecation" : {
809+
"replacement" : "spring.servlet.multipart.enabled",
810+
"level" : "error"
811+
}
812+
}, {
813+
"name" : "spring.http.multipart.file-size-threshold",
814+
"type" : "java.lang.String",
815+
"description" : "Threshold after which files will be written to disk. Values can use the suffixes\n \"MB\" or \"KB\" to indicate megabytes or kilobytes respectively.",
816+
"defaultValue" : "0",
817+
"deprecation" : {
818+
"replacement" : "spring.servlet.multipart.file-size-threshold",
819+
"level" : "error"
820+
}
821+
},
822+
{
823+
"name": "spring.http.multipart.location",
824+
"type": "java.lang.String",
825+
"description": "Intermediate location of uploaded files.",
826+
"deprecation": {
827+
"replacement": "spring.servlet.multipart.location",
828+
"level": "error"
829+
}
830+
},
831+
{
832+
"name": "spring.http.multipart.max-file-size",
833+
"type": "java.lang.String",
834+
"description": "Max file size. Values can use the suffixes \"MB\" or \"KB\" to indicate megabytes or\n kilobytes respectively.",
835+
"defaultValue": "1MB",
836+
"deprecation": {
837+
"replacement": "spring.servlet.multipart.max-file-size",
838+
"level": "error"
839+
}
840+
},
841+
{
842+
"name": "spring.http.multipart.max-request-size",
843+
"type": "java.lang.String",
844+
"description": "Max request size. Values can use the suffixes \"MB\" or \"KB\" to indicate megabytes or\n kilobytes respectively.",
845+
"defaultValue": "10MB",
846+
"deprecation": {
847+
"replacement": "spring.servlet.multipart.max-request-size",
848+
"level": "error"
849+
}
850+
},
851+
{
852+
"name": "spring.http.multipart.resolve-lazily",
853+
"type": "java.lang.Boolean",
854+
"description": "Whether to resolve the multipart request lazily at the time of file or parameter\n access.",
855+
"defaultValue": false,
856+
"deprecation": {
857+
"replacement": "spring.servlet.multipart.resolve-lazily",
858+
"level": "error"
859+
}
802860
}
803861
],"hints": [
804862
{

0 commit comments

Comments
 (0)