myhaiting opened a new issue, #4637:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4637
### 背景
项目从Servicecomb2.8迁移到Servicecomb3.2.3
### 问题
BigDecimal作为参数或返回值时无法正常解析
#### 1、BigDecimal参数
`
@GetMapping("/demo")
public String echo(@RequestParam BigDecimal v) {
return "ok";
}
`
#### 报错信息
`
Caused by: java.lang.IllegalStateException: failed to find producer
parameter in contract, method=ConsumerEndpoint:echo, parameter name=v.
at
org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerArgumentsMapperCreator.processUnknownParameter
`
#### 2、BigDecimal返回值
`
@GetMapping("/demo")
public BigDecimal echo(@RequestParam String v) {
return null;
}
`
#### 报错信息
`
Caused by: java.lang.Error: not support def type: class
io.swagger.v3.oas.models.media.NumberSchema
at
org.apache.servicecomb.swagger.converter.ConverterMgr.findJavaType(ConverterMgr.java:111)
`
### 预期
应该能正常序列化和反序列化
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]