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

com.kasinf.framework.rest.annotation.PageableDefaults Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.kasinf.framework.rest.annotation;

import java.lang.annotation.*;

/**
 * 

默认的分页数据,先从参数找,参数找不到从方法上找

* * @author Zhang Kaitao */ @Target({ElementType.METHOD, ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface PageableDefaults { /** * 默认分页条数 * @return int */ int value() default 10; /** * 默认页数 * @return int */ int pageNumber() default 0; /** * 默认的排序 格式为{"a=desc, a.b=desc"} * @return string */ String[] sort() default {}; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy