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

cn.bestwu.api.sign.ApiSign Maven / Gradle / Ivy

package cn.bestwu.api.sign;

import java.lang.annotation.*;

/**
 * 注解需要签名验证的接口,可注解在类上,或{@code RequestMapping}注解的方法上
 * 

*

 *
 * @ApiSign
 * @RestController
 * public class TestController {
 *
 * @RequestMapping(value = "/test", method = RequestMethod.POST)
 * public Object test() {
 * 		return "test";
 * 	}
 *
 * }
 * 
*

*

 *
 * @RestController
 * public class TestController {
 *
 * @ApiSign
 * @RequestMapping(value = "/test", method = RequestMethod.POST)
 * public Object test() {
 * 		return "test";
 * 	}
 *
 * }
 * 
* * @author Peter Wu */ @Target({ ElementType.METHOD, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented public @interface ApiSign { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy