项目中存在以下托管操作:
@ManagedOperation(description = "Some description")
@ManagedOperationParameters({
@ManagedOperationParameter(name = "key", description = "Some description"),
})
public void foo(String key) {
// some logic
}
还有一个属性可以在 Spring 上下文中使用,方法是用美元符号和方括号括起来:
"${some.property.key}"
是否可以在托管操作注释描述中使用上述属性键的值?就像是:
@ManagedOperationParameter(name = "key",
description = "Some description, please note that the key is ${some.property.key}")