alibaba/Sentinel

SentinelResourceAspect can not get @SentinelResource annotation in Proxy Interface

Open

#284 ouverte le 5 déc. 2018

Voir sur GitHub
 (7 commentaires) (0 réactions) (1 assigné)Java (8 150 forks)batch import
area/annotationgood first issuekind/bug

Métriques du dépôt

Stars
 (23 109 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Issue Description

I can not get @SentinelResource annotation property from Method in SentinelResourceAspect when I use a Proxy Interface(EchoService) that created by java.lang.reflect.Proxy.

public interface EchoService {
    @SentinelResource(value = "testResource")
    String echo(String str);
}

Type: bug report

Describe what happened (or what feature you want)

image

Guide contributeur