首页 \ 问答 \ 我的c语言学的不好,但是想学python。想报学习班,学这个人工智能和pytho

我的c语言学的不好,但是想学python。想报学习班,学这个人工智能和pytho

我的c语言学的不好,但是想学python。想报学习班,学这个人工智能和python有前途麽
更新时间:2022-08-02 20:08

最满意答案

默认情况下,文件入站端点将输入流作为有效内容返回,并显示您要读取的文件的内容。

现在MUnit默认禁用入站端点,因此要测试此流程,您必须对流程“TestImage”执行flow-ref。 在这种情况下,您可以使用set消息处理器并按以下方式加载要使用的测试文件:

<munit:set payload="#[getResource('test_image.jpeg').asStream()]" doc:name="Set Message"/>

这将创建一个带有有效负载的消息,该有效负载是图像的输入流。

HTH。


The file inbound endpoint will by default return a input stream as payload with the content of the file you want to read.

Now MUnit disable inbound endpoints by default so to test this flow you'll have to do a flow-ref to your flow "TestImage". In this case you can use the set message processor and load the test file you want to use in the following way:

<munit:set payload="#[getResource('test_image.jpeg').asStream()]" doc:name="Set Message"/>

This'll create a message with a payload that's an input stream for your image.

HTH.

相关问答

更多
  • 您可以使用以下示例: - 并且可以引用您的.xsd文件 ,您的传入XML需要针对该文件进行验证。 Mule有一个验证过滤器,可以为您进行验证。 参考: - https://docs.mulesoft.co ...
  • 默认情况下,文件入站端点将输入流作为有效内容返回,并显示您要读取的文件的内容。 现在MUnit默认禁用入站端点,因此要测试此流程,您必须对流程“TestImage”执行flow-ref。 在这种情况下,您可以使用set消息处理器并按以下方式加载要使用的测试文件: 这将创建一个带有有效负载的消息,该有效负载是图像的输入流。 HT ...
  • Talend ESB提供了一个很好的点击式Dicky IDE,包含许多组件。 但是,当涉及到定制需求时,解决方案可能变得尴尬,有时不可行。 有些ESB组件还不够成熟,在我们的项目中发生了这样的事情,Talend在飞行中配备了这个和那个。 当你是软件开发人员时,我建议亲手制作。 使用Apache Camel与Apache Karaf相结合,您可以获得100%的控制权。 顺便说一句,这些框架都在Talend的幌子下。 你需要了解Talend的学习曲线并不比学习这些提到的框架小。 干杯希尔德 Recently w ...
  • 问题类型的答案取决于用户对工具的经验和专业知识。 您可以在互联网上找到比较这些工具的链接,例如https://www.linkedin.com/grp/post/36781-178821575 The answer of type of question depends on user's experience and expertise over the tools. You can find may links on internet comparing these tools like https:/ ...
  • 你可以尝试添加像mock-connectors,mock-inbounds这样的属性 配置 下面是munit配置xml文件中修改的munit:config标签。 can you please try adding attributes ...
  • 我也在学习骡子并且有成千上万的问题,但是,我想,我可以回答你的问题。 您的流程中有一些流程。 你马上提出了太多问题。 这是你的流程(我为评论添加了1/2的HTTP) 第一个问题是我们有3个入口点。 2个HTTP和1个文件。 HTTP1等待一个http调用。 HTTP2等待另一个并且两者都不做,因为我们有文件组件实际上假设获取数据。 让我们摆脱不必要的HTTP并重新配置File以从本地目录中获取一些文件。 Yo可以添加流的另一部分来从HTTP中获取文件(存储在文件中,这是不必要的),然后使用它。 我跳过这个, ...
  • mule esb的最新版本支持log4j2。 希望版本可能紧密耦合,这可能是它可能无法工作的原因。 The latest version of mule esb is supporting the log4j2 . Hope the version may be tightly coupled that could be the reason it might not work.
  • 1)如何使用文件保持原始名称的完整性:outbound-endpoint? 附件是javax.activation.DataHandler实例,因此您应该能够使用OGNL或Groovy表达式对它们调用getName()。 例如: #[groovy:payload.name] 应该给你原始的附件名称。 2)我如何查看我收到了多少附件? 在拆分器之前,使用选择路由器和检查附件列表的size()属性的条件,如: #[groovy:payload.size()>1] 3)如何在IMAP和本地驱动器上保存邮件副本 ...
  • 您可以在流中使用排队异步处理策略。 使用此方法,您可以更改流可用的线程数。 例如:
    HTTP是一种断开连接的协议:重新连接策略仅适用于连接的协议,如JMS或JDBC。 我看到错误出现在出站端点,所以我觉得你期望Mule 重试调度,而不是重新连接传输。 重试的一种方法是使用until-successful消息处理器。 HTTP is a disconnected protocol: the reconnection strategies only work for connected protocols, like JMS or JDBC. I see the error is in an ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)