ApiVersion.java 393 B

123456789101112131415161718192021
  1. package com.yihu.jw.version;
  2. import org.springframework.web.bind.annotation.Mapping;
  3. import java.lang.annotation.*;
  4. /**
  5. * 版本控制的注解
  6. * Created by chenweida on 2017/6/15.
  7. */
  8. @Target({ElementType.METHOD, ElementType.TYPE})
  9. @Retention(RetentionPolicy.RUNTIME)
  10. @Documented
  11. @Mapping
  12. public @interface ApiVersion {
  13. /**
  14. * 版本号
  15. * @return
  16. */
  17. int value();
  18. }