Bo Li created SC-67:
-----------------------

             Summary: 启动时注册服务契约后,报关于Swagger的异常
                 Key: SC-67
                 URL: https://issues.apache.org/jira/browse/SC-67
             Project: Apache ServiceComb
          Issue Type: Bug
          Components: Java-Chassis
            Reporter: Bo Li


定义的每个RestController都返回ResponseEntity,例如
@requestmapping(value = "/", method = RequestMethod.POST)
public ResponseEntity customerInfo(@requestbody CustomerInfo customerInfo, 
HttpServletRequest request)
CustomerInfo.java
public class CustomerInfo {
// 项目ID
@jsonproperty(value = "PrecinctID",required = true)
private Long precinctID;
// 客户姓名
@jsonproperty(value = "CustomerName",required = true)
private String customerName;
// 手机号码1
@jsonproperty(value = "MobilePhone1",required = true)
private String mobilePhone1;
// 经纪人编号
@jsonproperty(value = "BrokerID",required = true)
private Long brokerID;
// 经纪人姓名
@jsonproperty(value = "BrokerName",required = true)
private String brokerName;
// 内部经纪人ID
@jsonproperty(value = "ConsultantID",required = true)
private Long consultantID;
// 外部系统来源
@jsonproperty(value = "SourceType",required = true)
private Integer sourceType;
}
post:
operationId: "customerInfo"
parameters:
- in: "body"
name: "customerInfo"
required: false
schema:
$ref: "#/definitions/data"
responses:
200:
description: "response of 200"
schema:
type: "string"
其它几个接口的参数中也都没有引用到Object类型
异常信息如下
ArrayIndexOutOfBoundsException.txt



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to