限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >开发者 >其他技术 >Java

ssm框架中使用pagehelper分页

分类:Java时间:2020-02-01浏览:2598
pom.xml中引入
 
      com.github.pagehelper
      pagehelper
      5.1.2
    
在applicationContext.xml中加入

            
                
                    
                        
                        
                            helperDialect=mysql
                            offsetAsPageNum=true
                            rowBoundsWithCount=true
                            pageSizeZero=true
                            reasonable=true
                        
                    
                
            
        
service中使用  service的实现类中使用 PageHelper.startPage(page,size);  controller 中使用  页面的调用
本站文章如未注明出处均为原创,转载请注明出处,如有侵权请邮件联系站长。
0/500
Share your thoughts respectfully.