1、jmeter 的 “消息體數據” 無法點擊:
解決:parameters跟body data的方式兩者只可選擇其一,當一種方式下有數據時就無法使用另外一種,必須清空。--【使用過,可以成功】

2、運行失敗,響應體提示報500 :
報錯: {"status":500,"message":"Content type 'text/plain;charset=UTF-8' not supported"} 等類似情況,如下圖

解決:網上找了很多解決方法都不管用,其實解決起來很簡單,添加請求信息頭(content-type,application/json),如下圖
PS: content-type根據需要的情況選擇,不區分大小寫;


content-type: application/json
3、參數 和消息體是兩種形式,只能選擇其中一種,使用后者能200,前者會報500
報錯:{"status":500,"message":"JSON parse error: Unrecognized token 'username': was expecting ('true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'username': was expecting ('true', 'false' or 'null')\n at [Source: (PushbackInputStream); line: 1, column: 10]"}
解決:
1)原因解析:參數,用於get 或put請求;消息體用於post請求;
2)解決:把post請求的消息體參數放在 消息體里,見上一個常見問題的截圖;

