-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested generics seem to have some issues with support. #575
Comments
@HengCC 可以升级2.7.5看下,最好提供下你的page类 |
初步判断是QDox无法解析出接口中方法返回值的泛型。 |
@abing22333 换成PageImpl实现类也是一样的. |
@HengCC 是你的配置有问题。没有引入源码,导致解析不出泛型。 <includes>
<!--格式为:groupId:artifactId;参考如下-->
<!--也可以支持正则式如:com.alibaba:.* -->
<!-- 如果配置了includes的情况下, 使用了jpa的分页需要include所使用的源码包 -->
<include>org.springframework.data:spring-data-commons.*</include>
<include>com.fasterxml.jackson:.*</include>
</includes> 你include了 spring-data-commmons 依赖,还需要显示定义一次。smart-doc不会自动解析依赖中的依赖。 <dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</dependency> |
原来还必须在显示的指定依赖在pom中. 加了这个依赖后确实生成出来就没问题了. .thks~ |
shalousun
changed the title
嵌套泛型似乎支持有问题
Nested generics seem to have some issues with support.
May 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The configuration is as follows:
The JSON configuration is:
The
Controller
is defined as:The
ResultDTO
is structured as:The generated documentation, however, fails to automatically generate fields and comments for generic DTOs.
The text was updated successfully, but these errors were encountered: