Mulesoft是使用CXF来支持web service,有三种方式

1.JAX-WS

2.Simple, POJO

3. Proxy, pass-throught

本文介绍POJO,最简单的方式

1。首先创建接口跟实现类,接口可以不用

package com.justin.mule.pojo;

public interface TotalPrice {
    public float cal(float price, int amount);
}

package com.justin.mule.pojo;

public class TotalPriceImp implements TotalPrice {
    public float cal(float price, int amount) {        
        return price*amount;
    }

}
View Code

相关文章:

  • 2021-05-17
  • 2021-11-17
  • 2021-08-06
  • 2022-12-23
  • 2021-09-11
猜你喜欢
  • 2021-10-31
  • 2022-01-05
  • 2021-11-24
  • 2021-06-07
相关资源
相似解决方案