Support replace Jpa Pageable

This commit is contained in:
shalousun 2021-07-03 00:36:00 +08:00
parent 8e2b86b39d
commit 7415c19c90
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
7. 修复doc模板错误gitee #I3Y640 7. 修复doc模板错误gitee #I3Y640
8. 修复字典模板错误,#119。 8. 修复字典模板错误,#119。
9. 忽略HttpServlet对象。 9. 忽略HttpServlet对象。
10. 支持内置替换Jpa Pageable对象的对象去除不必要的请求参数。
#### 版本号2.2.1 #### 版本号2.2.1

View File

@ -257,7 +257,7 @@ public class DocClassUtil {
public static String rewriteRequestParam(String typeName) { public static String rewriteRequestParam(String typeName) {
switch (typeName) { switch (typeName) {
case "org.springframework.data.domain.Pageable": case "org.springframework.data.domain.Pageable":
return "org.springframework.data.domain.PageRequest"; return "com.power.doc.model.framework.PageableAsQueryParam";
default: default:
return typeName; return typeName;
} }