You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/05/13 06:41:21 UTC
[GitHub] [dubbo-spi-extensions] AaronYang2333 opened a new issue, #117: dubbo api docs 在处理泛型 > 以及byte[] 数组时 会出现错误
AaronYang2333 opened a new issue, #117:
URL: https://github.com/apache/dubbo-spi-extensions/issues/117
```java
@DubboService
@ApiModule(value = "ServiceA[服务A]", apiInterface = ServiceA.class)
public class ServiceAImpl implements ServiceA{
@Override
@ApiDoc(value = "AAAA(string, string, clazz)", description = "xxx", responseClassDescription="xxxxx")
public RpcResult<?> AAAA(String dataSourceKey, String command, Class<? extends DataPattern> clazz) {
.....
}
@Override
@ApiDoc(value = "BBBB(string, string, clazz)", description = "XXXXX", responseClassDescription="YYYY")
public <T> RpcResult<T> BBBB(String dataSourceKey, String sql, Class<T> clazz) {
......
}
@Override
@ApiDoc(value = "CCC(string, string)", description = "XASDA", responseClassDescription="ASDSAA")
public RpcResult<byte[]> CCCCC(String bucket, String objName) {
.....
}
}
```
在以上三种方法上加入@ApiDoc注解 均会触发以下错误 其他使用了确定类型的参数列表的方法 均正常使用

--
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: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org