postman感觉很奇怪的事,求解答

问题遇到的现象和发生背景

img

两个接口,url一样 提交方式不同,为什么edit这个接口用postman的form-data传参就不行(add接口可以测通)

img


,但是用postman的x-www-form-urlencoded

img


就没有问题https://img-mid.csdnimg.cn/release/static/image/mid/ask/432742442836181.png "#left")

操作环境、软件版本等信息

java
idea
postman

尝试过的解决方法

img

我想要达到的结果

https://blog.csdn.net/doupudou6162/article/details/106712916?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163825737216780255293186%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=163825737216780255293186&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~times_rank-9-106712916.first_rank_v2_pc_rank_v29&utm_term=postman%E4%B8%AD%E7%9A%84form-data%E5%92%8Cx-www-form-urleencoded&spm=1018.2226.3001.4187

深入理解post使用form-data和x-www-form-urlencoded的本质区别

你直接给错误信息吧,谁知道你是不是参数的问题