"timestamp":"2019-11-12T02:39:28.949+0000","status":

  • 2019 年 11 月 13 日
  • 筆記

在Jmeter运行http请求时报错:

{"timestamp":"2019-11-12T02:39:28.949+0000","status":415,"error":"Unsupported Media Type","message":"Content type 'text/plain;charset=UTF-8' not supported","path":"/v1/getUserList"}

解决办法:将Content-Type 设置为application/json

线程组 –>添加->配置元件->Http信息头管理器