123456789101112131415161718192021 |
- package com.yihu.jw.version;
- import org.springframework.web.bind.annotation.Mapping;
- import java.lang.annotation.*;
- /**
- * 版本控制的注解
- * Created by chenweida on 2017/6/15.
- */
- @Target({ElementType.METHOD, ElementType.TYPE})
- @Retention(RetentionPolicy.RUNTIME)
- @Documented
- @Mapping
- public @interface ApiVersion {
- /**
- * 版本号
- * @return
- */
- int value();
- }
|