我有一个带有这样注释的方法:
@Timed(value="timed", extraTags={"account", Account.getById(@PathVariable("id")}
public Info getInfo(@PathVariable("id") String id) {
return Info.getById(id);
}
以上当然行不通。希望你能看到我正在尝试做的事情。给定路径上的 id,将帐户标签设置为 Account.getById() 返回的值的正确语法是什么?