POSTMAN POST方式传入纯数组

主要关注其传入的参数格式:


 @PostMapping(value = "", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)    
 @ApiOperation(value = "", notes = "", response = EntitlementRepositoryEditableColumnsDto.class)
 public ResponseEntity<com.sap.csc.ems.message.ApiMessage> getMassEntitlementByIds(@RequestBody String[] guids) throws BaseException
    {
        List inList = Arrays.asList(guids);
        return new ResponseEntity<>(service.getEntitlementsByGuids(inList), HttpStatus.CREATED);
    }

你可能感兴趣的:(Java)