title: How to pass value to custom annotation in java?
body: <p>my custom annotation is: </p>
  
  <pre><code>@Target(ElementType.METHOD)
  @Retention(RetentionPolicy.RUNTIME)
  public @interface CacheClear {
  
      long versionId() default 0;
  }
  </code></pre>
  
  <p>I want to achieve something like this, in which I can pass the method param "versionTo" to my custom annotation.</p>
  
  <pre><code>@CacheClear(versionId = {versionTo})
  public int importByVersionId(Long versionTo){
      ......
  } 
  </code></pre>
  
  <p>What should I do?</p>