You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/12/14 03:39:12 UTC

[GitHub] [servicecomb-java-chassis] hypggg commented on issue #2130: java.lang.IllegalStateException: not allow complex type for query parameter, type=java.util.List.

hypggg commented on issue #2130:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2130#issuecomment-744145346


   我们是定义的对象,对象中包含了List<Integer>,代码如下:
       @RequestMapping(
       		value = "/XXXX", 
       		produces = { "application/json" }, 
       		method = RequestMethod.GET)
       public ResponseEntity<byte[]> exportXXXX(
       		@Valid OpOrderReq opOrderReq) 
       	throws Exception
       {     
   		XXXX;
       }
   
   
   OpOrderReq类包含了这种字段,还有其它基本类型字段
   @Valid
       @JsonProperty("status_array")
       private List<Integer> statusArray = new ArrayList<Integer>();
   
   这种还不是直接传了List<String>类型的参数,这个要怎么改
   


----------------------------------------------------------------
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