Modify the way to get dubbo service name.

This commit is contained in:
oppofind 2020-06-01 20:20:23 +08:00
parent 5c7a47f59c
commit d27eacd9a2
1 changed files with 4 additions and 0 deletions

View File

@ -226,6 +226,10 @@ public class RpcDocBuildTemplate implements IDocBuildTemplate<RpcApiDoc> {
private void handleJavaApiDoc(JavaClass cls, List<RpcApiDoc> apiDocList, List<JavaMethodDoc> apiMethodDocs, int order, ProjectDocConfigBuilder builder) {
String className = cls.getCanonicalName();
List<JavaType> javaTypes = cls.getImplements();
if (javaTypes.size() >= 1 && !cls.isInterface()) {
className = javaTypes.get(0).getCanonicalName();
}
RpcApiDoc apiDoc = new RpcApiDoc();
apiDoc.setOrder(order);
apiDoc.setName(className);