因此,我的弹簧控制器没有检测到任何参数.我的帖子有问题吗?谢谢 解决方案 问题是您在使用 headers: {'Content-Type': 'text/html'}, 行你原来的问题.这会将内容设置为 text/html 而不是发布数据的内容.I have to do a POST from my ExtJs script in order to delete something from my DB:Ext.Ajax.request({ url: 'deleteRole.html', method: 'POST', headers: {'Content-Type': 'text/html'}, waitTitle: 'Connecting', waitMsg: 'Sending data...', params: { "rolename" : rolename }, scope:this, success: received, failure: function(){console.log('failure');}});when the post is sent i can see in the firebug the rolename in font but not as a param. I would like to show you another post (made with spring:form) relative to the user registration. If i inspect the post i can see the following:And i can get the parameters in my controller using @RequestParam.But in the post that i have problems i can't see the parameters part, i can only see the Font(Fuente) part:As a consequence, my spring controller does not detect any parameter. Is it something wrong in my POST?Thank you 解决方案 The problem is that you are using the line headers: {'Content-Type': 'text/html'}, in your original question. This would set the content to text/html instead of the content being post data. 这篇关于Extjs 4.2:如何在 Ext.Ajax.Request POST 中正确发送参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!