如何在 Munit Set Message 组件中将密钥填充为动态密钥?
How to populate key as dynamic one in Munit Set Message component?
我需要在 M-unit 的设置消息组件中填充它,现在我可以使用配置加载属性文件。
<spring:beans>
<spring:bean id="appProps"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<spring:property name="singleton" value="true" />
<spring:property name="location" value="classpath:input.properties" />
</spring:bean>
</spring:beans>
但是当我尝试从文件中动态加载键和值时,值部分被解析为实际值而不是键
<munit:invocation-property
key="#[groovy:appProps.get('flowVars.name.one')]" value="#[groovy:appProps.get('flowVars.name.one.value')]" />
谁能帮我解决为什么属性键中的表达式没有得到解析?
Munit 似乎无法解析 Key 属性中的表达式。
最好使用变量转换器来解析表达式。
谢谢,
维杰 D
我需要在 M-unit 的设置消息组件中填充它,现在我可以使用配置加载属性文件。
<spring:beans>
<spring:bean id="appProps"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<spring:property name="singleton" value="true" />
<spring:property name="location" value="classpath:input.properties" />
</spring:bean>
</spring:beans>
但是当我尝试从文件中动态加载键和值时,值部分被解析为实际值而不是键
<munit:invocation-property
key="#[groovy:appProps.get('flowVars.name.one')]" value="#[groovy:appProps.get('flowVars.name.one.value')]" />
谁能帮我解决为什么属性键中的表达式没有得到解析?
Munit 似乎无法解析 Key 属性中的表达式。 最好使用变量转换器来解析表达式。
谢谢, 维杰 D