我需要在 M-unit 中的 set message 组件中填充它,因为现在我可以使用配置加载属性文件。
<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')]" />
有人可以在这里帮助我为什么表达式没有在属性键中得到解析吗?