小编use*_*178的帖子

用于列出文件夹中的所有文件以及Windows中的子文件夹的命令

我尝试使用命令提示符命令搜索可以列出目录中的所有文件以及子文件夹的命令.我已阅读"dir"命令的帮助但却找不到我要找的东西.请帮助我什么命令可以得到这个.

windows command-line command dir

169
推荐指数
6
解决办法
84万
查看次数

Maven jaxb2:xjc无法生成代码

我已将以下插件添加到pom.xml中的Maven构建中

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jaxb2-maven-plugin</artifactId>
    <executions>
        <execution>
            <phase>generate-sources</phase>
            <goals>
                <goal>xjc</goal>
            </goals>
            <configuration> 
                <extension>true</extension>                             
                <clearOutputDir>false</clearOutputDir>
                <schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
                <schemaFiles>myapp.xsd</schemaFiles>                                                        
                <outputDirectory>${basedir}/src/main/java</outputDirectory>         
                <bindingDirectory>src/main/resources/xsd</bindingDirectory>     
                <bindingFiles>myapp-bindings.xjb</bindingFiles>
            </configuration>
        </execution>
    </executions>                       

</plugin>
Run Code Online (Sandbox Code Playgroud)

以下是构建错误.

[INFO] Ignored given or default xjbSources [C:\WorkSpace\MyApp\src\main\xjb], since it is not an existent file or directory.
[INFO] Ignored given or default sources [C:\WorkSpace\MyApp\src\main\xsd], since it is not an existent file or directory.
[WARNING] No XSD files found. Please check your plugin configuration.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.273s
[INFO] Finished at: Tue …
Run Code Online (Sandbox Code Playgroud)

build jaxb xjc maven

14
推荐指数
3
解决办法
4万
查看次数

如何在mule logger组件的消息体中插入换行符

谁能告诉我如何在骡子记录器组件的消息中插入新行?

例如,我在记录器的消息中有以下内容:

Payload is: #[payload] 
Inbound Headers:  #[headers:INBOUND:*] 
Outbound Headers:  #[headers:OUTBOUND:*]  
Exceptions:  #[exception]
Run Code Online (Sandbox Code Playgroud)

我想在上面的每一个之后插入一个新行.我试过在每行的末尾添加\n,但这不起作用.

logging mule mule-studio

9
推荐指数
2
解决办法
1万
查看次数

搜索查询以在弹出搜索中检索嵌套文档并禁用_source

我有以下映射

{
    "cloth": {
                 "dynamic" : false,
                 "_source" : {"enabled" : false },
        "properties": {
            "name": {
                "type": "string",
                "index": "analyzed"
            },
            "variation": {
                "type": "nested",
                "properties": {
                    "size": {
                        "type": "string",
                        "index": "not_analyzed"
                    },
                    "color": {
                        "type": "string",
                        "index": "not_analyzed"
                    }
                }
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

我无法找到使用字段查询检索嵌套对象字段的方法.

{
    "fields" : ["name" , "variation.size", "variation.color"],
    "query" : {
        "nested" : {
            "path" : "variation",
            "query" : {
                "bool" : {
                    "must" : [
                        { "term" : { "variation.size" : "XXL" …
Run Code Online (Sandbox Code Playgroud)

lucene dsl search elasticsearch

9
推荐指数
1
解决办法
3045
查看次数

测试Mule中的子流程

我已经开始将测试用例写入我的Mule项目了.

我已经为我的Main Flows编写了功能测试用例,如下所示.

public void testMainFlow_1() throws Exception{
     MuleClient client = muleContext.getClient();
            MuleMessage result = client.send(helloServiceAddress, fileAsString("SamplePayloads/input_Request.xml"), properties);
    assertNotNull("Null Result", result);           
    assertEquals(result.getPayloadAsString(), fileAsString("SampleResponses/sampleResponse.xml"));   

}
Run Code Online (Sandbox Code Playgroud)

但是我如何测试我的子流程.他们没有任何终点.那么如何将有效载荷传递给它们并进行测试呢.

以下是我的流量配置.

<flow name="main_flow" >
    ....
    ....
    <flow-ref  name="subflow_1" />
    ....
    ....
    <flow-ref  name="subflow_2" />
    ....
    ....
</flow>

<sub-flow name="subflow_1">
    ....
    <some-transformer ... />
    <out-bound call to web-service />
    <some-transformer ... />
    ....
</sub-flow>

<sub-flow name="subflow_2">
    ....
    <some-transformer ... />
    <out-bound call to web-service />
    <some-transformer ... />
    ....
</sub-flow>
Run Code Online (Sandbox Code Playgroud)

java unit-testing flow functional-testing mule

6
推荐指数
1
解决办法
4181
查看次数

Mule MEL使用差异

我一直在使用不同形式的Mule表达语言.我无法弄清楚它们之间的区别

#[flowVars.myVariable]  
Run Code Online (Sandbox Code Playgroud)

#[flowVars['myVariable']]
Run Code Online (Sandbox Code Playgroud)

当有变量时,它们都给出结果.但是,当变量不存在时,为什么它们的行为会有所不同?

就像被调用的变量不可用一样,第一个表达式会导致异常.而第二个表达式只是发出警告或打印出来,如果在记录器消息中.

为什么会有这种差异?

另外,在浏览Mule 3.6的文档时,我发现第二个表达式不再显示在文档中.

表达式#[flowVars ['myVariable']]是否已被弃用?

mvel mule mule-studio

2
推荐指数
1
解决办法
210
查看次数

具有重用和并发性的子流

我正在为一种情况准备解决方案。我的解决方案可能是抽象的。

我的问题是,当两个主要流同时调用同一子流时,它将正常工作吗?

另外,对于子流中用作自定义组件/ tranaformers的所有类,我是否需要将代码编写为线程安全的?

我的抽象配置如下所示。

<flow name="mainflow_1" >
    <inbound-endpoint/>
    <transformer ....>
    <component ....>
        <flow-ref name="subflow_1"></flow-ref>
    <transformer ....>
    <component  ...>
    <outbound-endpoint ....>
</flow>

<flow name="mainflow_2" >
    <inbound-endpoint  type="request-response" />
    <transformer ....>
    <component ....>
        <flow-ref name="subflow_1"></flow-ref>
    <transformer ....>
    <component  ...>            
</flow>

<sub-flow name="subflow_1" >        
    <transformer ....>
    <component ....>
        <outbound-endpoint  call to some service >
    <transformer ....>
    <component  ...>        
</sub-flow>
Run Code Online (Sandbox Code Playgroud)

请指导我。

concurrency flow reusability mule

1
推荐指数
1
解决办法
1868
查看次数