Fix use of KB and MB in Multipart documentation

Closes gh-7364
This commit is contained in:
Stephane Nicoll 2016-11-20 15:51:47 +09:00
parent fce17ca6d9
commit 249ed899a6
2 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ import org.springframework.util.StringUtils;
* <p> * <p>
* These properties are ultimately passed through {@link MultipartConfigFactory} which * These properties are ultimately passed through {@link MultipartConfigFactory} which
* means you may specify the values using {@literal long} values or using more readable * means you may specify the values using {@literal long} values or using more readable
* {@literal String} variants that accept {@literal Kb} or {@literal Mb} suffixes. * {@literal String} variants that accept {@literal KB} or {@literal MB} suffixes.
* *
* @author Josh Long * @author Josh Long
* @author Toshiaki Maki * @author Toshiaki Maki
@ -62,13 +62,13 @@ public class MultipartProperties {
* Max file size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or * Max file size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or
* Kilobyte size. * Kilobyte size.
*/ */
private String maxFileSize = "1Mb"; private String maxFileSize = "1MB";
/** /**
* Max request size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte * Max request size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte
* or Kilobyte size. * or Kilobyte size.
*/ */
private String maxRequestSize = "10Mb"; private String maxRequestSize = "10MB";
/** /**
* Threshold after which files will be written to disk. Values can use the suffixed * Threshold after which files will be written to disk. Values can use the suffixed

View File

@ -26,8 +26,8 @@ import org.springframework.util.Assert;
* readable {@literal String} variants that accept KB or MB suffixes, for example: * readable {@literal String} variants that accept KB or MB suffixes, for example:
* *
* <pre class="code"> * <pre class="code">
* factory.setMaxFileSize(&quot;10Mb&quot;); * factory.setMaxFileSize(&quot;10MB&quot;);
* factory.setMaxRequestSize(&quot;100Kb&quot;); * factory.setMaxRequestSize(&quot;100KB&quot;);
* </pre> * </pre>
* *
* @author Phillip Webb * @author Phillip Webb