title: How to set the max size of upload file
body: <p>I'm developing application based on Spring Boot and AngularJS using JHipster.
  My question is how to set <strong>max size of uploading files</strong>?</p>
  
  <p>If I'm trying to upload to big file I'm getting this information in console:</p>
  
  <pre><code>  DEBUG 11768 --- [io-8080-exec-10] c.a.app.aop.logging.LoggingAspect: 
  
  Enter: com.anuglarspring.app.web.rest.errors.ExceptionTranslator.processRuntimeException() with argument[s] = 
  
  [org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: 
  
  org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 1048576 bytes.]
  </code></pre>
  
  <p>And server response with status 500.</p>
  
  <p>How to set that?</p>