BeanShell:字符串 + 函数的值

BeanShell: String + function's value

谁能帮帮我?

豆壳:

奥列格

在 BeanShell 中,这样做更容易:

props.put("MyProperty", UUID.randomUUID().toString() + "Test");

尽管在您之前的语法中,不要添加 +,它也应该有效:

${__setProperty(MyProperty, ${__UUID()}Test)}; 

否则,请告诉我们您使用哪个元素设置它。