jMeter post body 数据没有映射到bean

jMeter post body data is not mapped to bean

body数据中发送的数据被忽略。 Bean 将使用其默认数据创建,而不是通过 post.

发送的数据

输出Body:

POST http://localhost:9080/myapp/createEntity
POST data:
{
    "entity.name":"name",
    "entity.description":"description",
    "otherEntity.name":"name"
}
Cookie Data:
......

Header :

Connection: keep-alive
Content-Type: application/json
Accept: application/json
Content-Length: 378
Host: localhost:9080
User-Agent: Apache-HttpClient/4.5.12 (Java/1.8.0_262)

不过,请求可以正常使用 GET :

因为是表单数据,所以content-type使用权是:application/x-www-form-urlencoded.

我没有使用正文数据,而是将其作为常规参数发送。 (这样就不用关心body数据格式了)

现在完美运行!