1
在项目中存在以下管理操作:如何公开MBean中描述的属性
@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}")
用一个简单的方法更新得到解析器。 –