Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Java 代码中检索“全局属性”元素的值?
<mule xmlns="http://www.mulesoft.org/schema/mule/core"> <global-property name="theKey" value="theValue" /> </mule>
我正在使用骡子 3.2.1。谢谢。
这:
MuleContext muleContext = ... muleContext.getRegistry().get("theKey");