You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Yang Bo (JIRA)" <ji...@apache.org> on 2018/05/16 08:55:00 UTC

[jira] [Commented] (SCB-67) Swagger exception is throw when registering the service

    [ https://issues.apache.org/jira/browse/SCB-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477094#comment-16477094 ] 

Yang Bo commented on SCB-67:
----------------------------

Could you please add more information close this issue?

> Swagger exception is throw when registering the service
> -------------------------------------------------------
>
>                 Key: SCB-67
>                 URL: https://issues.apache.org/jira/browse/SCB-67
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: Bo Li
>            Priority: Major
>
> 定义的每个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
(v7.6.3#76005)