TimeInterval.java 841 Bytes
package com.cjs.cms.util.web;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.METHOD;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 访问间隔限制注解。用来限制用户访问指定Action方法的时间间隔。<br>
 * <b>此注解只在被@RequestMapping标注的方法上生效。</b>
 * 
 * @author tongyufu
 *
 */
//表示@CheckCase 可以被用在方法, 字段或者annotation声明上.
@Target({ METHOD, ANNOTATION_TYPE })
//表示这个标注信息是在运行期通过反射被读取的.
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface TimeInterval {

    /**访问时间间隔,单位秒*/
    String value();
    
}