Skip to content
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

分页bug #2

Open
MINWZM opened this issue Oct 5, 2018 · 1 comment
Open

分页bug #2

MINWZM opened this issue Oct 5, 2018 · 1 comment

Comments

@MINWZM
Copy link

MINWZM commented Oct 5, 2018

list.jsp点击换页没有传pageSize值,且controller层的findByPage方法,默认如果pageSize是null,则等于2;导致每当pageSize设置大于2时,点击首页/末页...换页显示信息条数都是2;
image

@TyCoding
Copy link
Owner

TyCoding commented Oct 7, 2018

@MINWZM 谢谢反馈,list.jsp中我已修改,但是SpringMVC的@RequestParam()注解用于请求传递的参数名字不匹配的时候用的,defaultValue表示默认值,也就是如果参数名称不匹配则设定此参数默认值,如果传递的参数有值就不会使用这个默认值。可以加入我的交流群:671017003如果我没能及时看到issues的话

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants