com.healthy.common.mybatis.pageable.PageableProperties Maven / Gradle / Ivy
package com.healthy.common.mybatis.pageable;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import static com.healthy.common.model.constant.PageConstants.*;
/**
* 分页参数配置
*
* @author xm.z
*/
@Data
@ConfigurationProperties("pageable")
public class PageableProperties {
/**
* 当前页的参数名
*/
private String pageParameterName = DEFAULT_PAGE_PARAMETER;
/**
* 每页数据量的参数名
*/
private String sizeParameterName = DEFAULT_SIZE_PARAMETER;
/**
* 排序规则的参数名
*/
private String sortParameterName = DEFAULT_SORT_PARAMETER;
/**
* 分页查询的每页最大数据量
*/
private int maxPageSize = DEFAULT_MAX_PAGE_SIZE;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy