You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/11/28 02:19:26 UTC

[GitHub] [rocketmq-spring] intodream commented on issue #181: V2.0.4 json parse error

intodream commented on issue #181: V2.0.4  json parse error
URL: https://github.com/apache/rocketmq-spring/issues/181#issuecomment-559314153
 
 
   such as :
   The input parameters of my interface are 
   
   private Integer expiredDays;
   private List<String> types;
   
   Only two parameters
   I then use postman to call the interface to pass these two parameters.
   {
   	"expiredDays":10,
   	"types":["type"]
   }
   The result is success
   
   I passed a parameter with a name other than these two parameters
   such as 
   {
   	"name":"test"
   }
   An exception occurs:
   
   org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unrecognized field "name" 
   
   In the original version, passing parameters like this was no problem.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services