The front-end upload file is too large and the back-end cannot receive the problem (Base64 or MultipartFile)

The post request theoretically has no limit on the size of the parameter, but the tomcat server has a limit. This article does not introduce the way to change the tomcat configuration file. It is solved by changing the spring-boot configuration file in another way.

The application.yml of spring-boot can be configured as follows:
Insert picture description here
If the configuration file is in xml format as follows:

//单次请求所有图片最大100Mb
server.tomcat.max-http-post-size: 104857600

Online byte converter

Guess you like

Origin blog.csdn.net/ouyangli2011/article/details/90080968