Within my flow - I am trying to read username pwd from a file based on a key sent by the user.
Question:
要读取单个文件,可以使用Mule Requester模块 。
<mulerequester:request resource="file://${my.filename}"/>
读取文件可以使用文件入站,文件入站后的有效负载将是文件的内容
There is a lot of documentation that shows users different ways to read a properties file in Mule flows.
Here are three approaches on how you can do this:
Reading a properties file using ${Key} expression
Reading a properties file using ![p[‘Key’]] expression
Reading a properties file using p() function from DataWeave
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.