We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
作者好,在SearchResult这个检索结果返回并没有分页的数据,我在spring boot 做统一结果返回的时候,并不能拿到分页信息,请问这个有什么好办法吗
The text was updated successfully, but these errors were encountered:
page
size
totalPage
totalCount
<a-pagination v-model:current="current" :total="50" show-less-items />
所以,SearchResult 已经足够,没必要再添加别的冗余字段了。
SearchResult
如果你实在想添加一些其它字段一起返回给前端,那么可以添加一个 过滤器 javax.servlet.Filter (Servlet 技术) 或者 ControllerAdvise (Spring 技术) 对返回结果 SearchResult 统一做加工转换处理。
javax.servlet.Filter
ControllerAdvise
Sorry, something went wrong.
如果page大于最大页数,此时前端需要计算page是否大于total/pageSize,对于这样的情况如果不反回page页码,一般使用BeanSearch是如何处理的?
前后端分离的情况下,不会出现这种情况。如果确实出现这种情况,那么前端直接跳到第一页即可。
No branches or pull requests
作者好,在SearchResult这个检索结果返回并没有分页的数据,我在spring boot 做统一结果返回的时候,并不能拿到分页信息,请问这个有什么好办法吗
The text was updated successfully, but these errors were encountered: