【发布时间】:2015-05-27 10:15:32
【问题描述】:
MuleSoft:将代码移至 CloudHub 时无法找到文件。 有人可以帮忙。我已阅读您的建议,但无法理解。我必须在 cloudhub 中读取一个 json 文件。在我的本地存储库中,我将 .json 文件保存在位置 test/src/main/resources/input.json 中。并从 Java 类中读取此内容
private static final String jsonFilePath = "src\main\resources\input.json";
byte[] jsonFile = Files.readAllBytes(Paths.get(jsonFilePath));
任何帮助将不胜感激。
【问题讨论】: