我无法访问属性部分中提到的资源属性test1
。WSO2 API管理器 - 无法访问资源属性
我试图通过使用表达式来访问它。 get-property('test1')
。我期待在控制台的这个结果为test1-value
。但是显示为null
。
更新
我曾尝试以下选项,但没有什么工作这个test1
属性。
<property expression="get-property('registry', 'gov:/data/xml/[email protected]')" name="test_property2"/>
<property expression="get-property('registry', 'gov:/_system/governance/apimgt/customsequences/in/[email protected]')" name="test_property4"/>
<property expression="get-property('gov:/_system/governance/apimgt/customsequences/in/[email protected]')" name="test_property6"/>
请尝试https://stackoverflow.com/questions/11210545/loading-a-registry-entry-into-a-wso2-property-mediator – Pubci