1

次のマネージド オペレーションがプロジェクトに存在します:

@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}")
4

1 に答える 1