Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if i want to use Combination of annotation in Spring? #208

Closed
Kk1905 opened this issue Mar 25, 2020 · 3 comments
Closed

What if i want to use Combination of annotation in Spring? #208

Kk1905 opened this issue Mar 25, 2020 · 3 comments

Comments

@Kk1905
Copy link

Kk1905 commented Mar 25, 2020

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@Kk1905
Copy link
Author

Kk1905 commented Mar 25, 2020

for example ,i worote an custom annotation MyScheduled

@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Scheduled
@Async
@SchedulerLock
public @interface MyScheduled {
  @AliasFor(
      annotation = Scheduled.class
  )
  String cron();

  @AliasFor(
      annotation = SchedulerLock.class,attribute = "name"
  )
  String name();

  @AliasFor(
      annotation = SchedulerLock.class,attribute = "lockAtMostFor"
  )
  String lockAtMostFor() default "";

  @AliasFor(
      annotation = SchedulerLock.class,attribute = "lockAtLeastFor"
  )
  String lockAtLeastFor() default "";
}

I tested,SchedulerLock does not work.

@lukas-krecan
Copy link
Owner

Hi, thanks for feedback, I will take a look at it.

lukas-krecan pushed a commit that referenced this issue Mar 25, 2020
lukas-krecan pushed a commit that referenced this issue Mar 25, 2020
lukas-krecan pushed a commit that referenced this issue Mar 25, 2020
lukas-krecan added a commit that referenced this issue Mar 25, 2020
@lukas-krecan
Copy link
Owner

lukas-krecan commented Mar 25, 2020

Released as 4.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants