我將 Apache Camel 與 spring boot 一起使用,當我想發送一個 25MB 的文件時,出現錯誤 413 Request Entity Too Large。我試過設置但我仍然沒有工作。spring.servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB我使用駱駝彈簧引導 2.23.1
1 回答

慕斯王
TA貢獻1864條經驗 獲得超2個贊
我需要將它添加到 restConfiguration()
restConfiguration() .componentProperty("chunkedMaxContentLength", String.valueOf(50 * 1024 * 1024)) .endpointProperty("chunkedMaxContentLength", String.valueOf(50 * 1024 * 1024)) .consumerProperty("chunkedMaxContentLength", String.valueOf(50 * 1024 * 1024))
添加回答
舉報
0/150
提交
取消