alibaba/Sentinel

SentinelResourceAspect can not get @SentinelResource annotation in Proxy Interface

Open

#284 建立於 2018年12月5日

在 GitHub 查看
 (7 留言) (0 反應) (1 負責人)Java (8,150 fork)batch import
area/annotationgood first issuekind/bug

倉庫指標

Star
 (23,109 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南