在自定义注释中使用@Timed注释时不会被调用

时间:2019-10-30 06:17:52

标签: micrometer spring-micrometer

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Timed
Public @interface MyCustomAnnotation{
@AliasFor(annotation = Timed.class , attribute = "value")
String value();
}

@Timed的实现(TimedAspect.class)使用@Around注释进行调用。如何通过自定义注释使用此内部实现?

0 个答案:

没有答案