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

com.cybermkd.route.annotation.PATCH Maven / Gradle / Ivy

package com.cybermkd.route.annotation;

import com.cybermkd.route.valid.Validator;

import java.lang.annotation.*;

/**
 * Annotation used to mark a resource method that responds to HTTP PATCH requests.
 * PATCH 用于资源的部分内容的更新,例如更新某一个字段。具体比如说只更新用户信息的电话号码字段
 * 部分情况下 不支持该方法  jdk7- 的 HttpUrlConnection 不支持patch
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface PATCH {
    String value() default "";

    String[] headers() default {};

    String des() default "";

    Class[] valid() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy