简体   繁体   中英

Mule Studio: Mule Flow: Use of File

Within my flow - I am trying to read username pwd from a file based on a key sent by the user.

Question:

  1. Does Mule allow to read data from the file (it can contain set of user keys and every key will have a uname/pwd
  2. What connector to use it?

要读取单个文件,可以使用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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM