alibaba/Sentinel

SentinelResourceAspect can not get @SentinelResource annotation in Proxy Interface

Open

#284 geöffnet am 5. Dez. 2018

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (8.150 Forks)batch import
area/annotationgood first issuekind/bug

Repository-Metriken

Stars
 (23.109 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide