- 浏览: 35343 次
- 性别:
- 来自: 郑州
文章分类
最新评论
-
yekui:
把Liberarise 重新导,src等都从新倒 即可解决。
tomcat编译工程之后classes文件夹下没有文件或者缺失文件解决办法 -
w1113:
刚才也碰到你的这个问题,编译后的class文件发布不上去,最后 ...
tomcat编译工程之后classes文件夹下没有文件或者缺失文件解决办法 -
苏叶晚晚:
我也遇到了同样。。。无奈的问题。唉==
用楼主的奇思妙想的办法 ...
tomcat编译工程之后classes文件夹下没有文件或者缺失文件解决办法
public class PageHelper {
/** Hibernate分页属性之一,起始数据位�?*/
private int firstResult = 0;
/** Hibernate分页属性之一,读取的�?��记录�?*/
private int maxResults = 10;
/** 页面显示记录数,默认通maxResults */
private int pageSize = 10;
/** 当前页数,设置完当前页数可自动计算出起始数据位置firstResult */
private int currentPage = 0;
/** 由totalRows和pageSize自动计算得出 */
private int totalPages = 0;
/** 记录总数 */
private int totalRows = 0;
/** 分页得到的结果集 */
@SuppressWarnings("unchecked")
private List results = Collections.emptyList();
/** 是否自动获取记录总数 */
private boolean autoCount = false;
public int getFirstResult() {
firstResult = currentPage - 1 < 0 ? 0 : (currentPage - 1) * pageSize;
return firstResult;
}
public int getMaxResults() {
return maxResults;
}
public void setMaxResults(int maxResults) {
this.maxResults = maxResults;
this.pageSize = this.maxResults;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
this.maxResults = this.pageSize;
}
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public int getTotalPages() {
totalPages = this.totalRows % this.pageSize > 0 ? this.totalRows
/ this.pageSize + 1 : this.totalRows / this.pageSize;
return totalPages;
}
public int getTotalRows() {
return totalRows;
}
public void setTotalRows(int totalRows) {
this.totalRows = totalRows;
}
/**
* @return the results
*/
@SuppressWarnings("unchecked")
public List getResults() {
return results;
}
/**
* @param results
* the results to set
*/
@SuppressWarnings("unchecked")
public void setResults(List results) {
this.results = results;
}
/**
* @return the autoCount
*/
public boolean isAutoCount() {
return autoCount;
}
/**
* @param autoCount the autoCount to set
*/
public void setAutoCount(boolean autoCount) {
this.autoCount = autoCount;
}
}
/** Hibernate分页属性之一,起始数据位�?*/
private int firstResult = 0;
/** Hibernate分页属性之一,读取的�?��记录�?*/
private int maxResults = 10;
/** 页面显示记录数,默认通maxResults */
private int pageSize = 10;
/** 当前页数,设置完当前页数可自动计算出起始数据位置firstResult */
private int currentPage = 0;
/** 由totalRows和pageSize自动计算得出 */
private int totalPages = 0;
/** 记录总数 */
private int totalRows = 0;
/** 分页得到的结果集 */
@SuppressWarnings("unchecked")
private List results = Collections.emptyList();
/** 是否自动获取记录总数 */
private boolean autoCount = false;
public int getFirstResult() {
firstResult = currentPage - 1 < 0 ? 0 : (currentPage - 1) * pageSize;
return firstResult;
}
public int getMaxResults() {
return maxResults;
}
public void setMaxResults(int maxResults) {
this.maxResults = maxResults;
this.pageSize = this.maxResults;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
this.maxResults = this.pageSize;
}
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public int getTotalPages() {
totalPages = this.totalRows % this.pageSize > 0 ? this.totalRows
/ this.pageSize + 1 : this.totalRows / this.pageSize;
return totalPages;
}
public int getTotalRows() {
return totalRows;
}
public void setTotalRows(int totalRows) {
this.totalRows = totalRows;
}
/**
* @return the results
*/
@SuppressWarnings("unchecked")
public List getResults() {
return results;
}
/**
* @param results
* the results to set
*/
@SuppressWarnings("unchecked")
public void setResults(List results) {
this.results = results;
}
/**
* @return the autoCount
*/
public boolean isAutoCount() {
return autoCount;
}
/**
* @param autoCount the autoCount to set
*/
public void setAutoCount(boolean autoCount) {
this.autoCount = autoCount;
}
}
发表评论
-
经典sql语句大全
2011-03-07 17:42 835一、基础 1、说明:创建数据库CREATE DATABA ... -
Java面向对象设计最佳实践
2011-03-07 17:40 762Java面向对象设计最佳实践 内置类设计 从这篇文 ... -
Spring AOP处理日志
2011-03-07 17:39 1205Spring AOP处理日志 AOP正 ... -
验证码相关2
2011-03-07 16:57 659登录的jsp页面: <%@ page language= ... -
验证码相关
2011-03-07 16:55 797public class RandomNumUtil { ... -
LoginInterceptor (用户登录拦截器类)
2011-03-07 16:54 1819public class LoginInterceptor e ... -
Pager(分页查询类)
2011-03-07 16:53 1265public class Pager extends Hibe ... -
FileTool (文件工具类)
2011-03-07 16:51 1573public class FileTool { ... -
CustomActionSupport (继承ActionSupport的类)
2011-03-07 16:50 784public class CustomActionSuppor ... -
StringTool(字符串工具类)
2011-03-07 16:49 1361public class StringTool { ... -
DateFormatTool(日期格式和字符串格之间转换类,日期转换器用到此类)
2011-03-07 16:49 1920public class DateFormatTool { ... -
LongConvert(Long类型转换器)
2011-03-07 16:48 918public class LongConvert extend ... -
IntConvert(整数类型转换器)
2011-03-07 16:47 794public class IntConvert extends ... -
DateConvert(日期类型转换器)
2011-03-07 16:47 1697public class DateConvert extend ... -
Xwork-conversion.properties资源文件全文
2011-03-07 16:46 1113java.sql.Timestamp=com.wyt.comm ... -
Struts.priperties配置文件全文
2011-03-07 16:46 758struts.objectFactory=spring str ... -
SSH2整合过程中出现的错误及解决方法
2011-03-07 16:45 1079老是报,ERROR [main] (Conte ... -
SSH2整合的顺序
2011-03-07 16:44 9761. 添加Spring 2.0的Libraries 选择 ... -
log4j.properties资源文件全文
2011-03-07 16:43 659log4j.rootLogger=INFO,ERROR,con ... -
init.properties资源文件全文
2011-03-07 16:42 1498datasource.type=mssql datasourc ...
相关推荐
PageHelper分页实例(带页面),基于Spring+Mybatis+SpringMVC后台与前台分页展示,效果和过程可见博文http://blog.csdn.net/evankaka/article/details/49452201
PageHelper分页插件 PageHelper分页插件 PageHelper分页插件
pageHelper分页失效解决方案.docx
基于mybatis的通用分页插件pageHelper
Mybatis的分页插件,使用方法可以来我的博客搜索http://blog.csdn.net/u012291718
pagehelper分页插件
MyBatis基于Spring-boot集成通用Mapper以及pagehelper分页插件,含单元测试、SQL脚本;减少Mybatis SQL的编写
PageHelper是Github上开源的MyBatis分页插件,使用起来非常的简单,方便,并且支持任何复杂的单表、多表分页
Spring集成MyBatis 通用Mapper以及 pagehelper分页插件
pagehelper 分页插件jar包,可以直接使用!!!!!!
pageHelper分页配置所需jar包,可用
Mybatis-PageHelper 分页 jar包
springboot整合mybatis,接口返回值利用pagehelper实现分页
Java版本的PageHelper分页插件,可继承到spring上使用,使用简单方便!
Mybatis分页插件- PageHelper 使用说明
mybatis pagehelper 分页插件及其依赖包,经测试可以使用。
pagehelper分页
PageHelper分页插件的使用和Jsp分页页面展示源码,可以参考文章P《ageHelper分页插件的使用和Jsp分页页面展示(带源码)》
springmvc集成mybatis的分页插件 如果你也在用 MyBatis,建议尝试该分页插件,这一定是最方便使用的分页插件。分页插件支持任何复杂的单表、多表分页。
taotao淘淘商城PageHelper分页插件版本3.4.2-fix