Symptom
- HTTP POST requests return 405 Method Not Allowed after upgrading to JDK 21 and Spring Framework 6.2+.
- The request Content-Type is multipart/form-data
- Exclude CSRF-related causes first. See this SAP KBA: 3670785 - Http request with POST method may end up with "405 Method Not Allowed" error due to in Spring 6 CSRF token handling got slightly changed
Read more...
Environment
SAP Commerce Cloud 2211 (JDK 21)
Product
SAP Commerce Cloud 2211 for JDK21
Keywords
405 Method Not Allowed, POST, JDK21, Spring 6.2, Framework Upgrade, multipart-config, StandardServletMultipartResolver , KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview