All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.mybatis.pageable.PageableProperties Maven / Gradle / Ivy

There is a newer version: 2.0.0-M1
Show newest version
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