title: I am trying to set maxFileSize but it is not honored
body: <p>I am developing an application utilizing JHipster. I have added the following to my application-dev.yml file:</p>
  
  <pre><code>spring:
  
      profiles:
          active: dev
  
      multipart:
          maxFileSize: -1
  </code></pre>
  
  <p>But I am still getting an error when I try to try to upload a file > 1MB:</p>
  
  <pre><code>Caused by: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (20663006) exceeds the configured maximum (10485760)
  </code></pre>
  
  <p>What am I missing? It seems this should be pretty straight forward.</p>
  
  <p><strong>Update 1</strong></p>
  
  <p>I un-nested it from <code>spring</code> config as suggested by Andy, but still got the error. Updated yml file:</p>
  
  <pre><code>server:
      port: 8080
  
  multipart:
          maxFileSize: -1
  
  spring:
  
      profiles:
          active: dev
  
      datasource: ...
  </code></pre>
  
  <p><strong>Update 2</strong></p>
  
  <p>Ran into this issue again on newer version of Sprint Boot and had to change to this:</p>
  
  <pre><code>spring:
      http:
          multipart:
              max-file-size: 30MB
              max-request-size: 30MB
  </code></pre>