java - Limiting the maximum request size in Tomcat -


working on rest service based on spring boot embedded tomcat limit size of request body http method (post, put, get, ...).

i know of maxpostsize property of connector. property seems limit post requests. possibility imho implement javax.servlet.filter , check value of content-length header.

is there way achieve not aware of?

you may set multipart.maxrequestsize property in application.properties. default 10mb.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -