MuleSoft----初识mulesoft

本文介绍了Mulesoft公司,其由Ross Mason于2006年创建,使命是连接万物。还介绍了Anypoint Platform,包含Design Center、Exchange等组件。此外,分享了Mulesoft初体验,包括准备工作、在线使用Design Center开发及使用anypoint开发等内容。

mulesoft 公司简介

Ross Mason 在数10年前创建的,mule 一词来源于“骡子”,主要是为了避免这种单调乏味的苦差事 ; 繁重无聊的工作而诞生的。

官网地址:https://www.mulesoft.com

公司使命/口号: Connect anything. Change everything

                        Connecting the world's applications, data, and devices

创始人: Ross Mason 2006年

开发文档https://docs.mulesoft.com/general/

论坛https://help.mulesoft.com/s/forum

课程培训:https://training.mulesoft.com/

考试证书https://training.mulesoft.com/certification

job 招聘https://salesforce.wd1.myworkdayjobs.com/mulesoft_careersite

为什么选择mulesoft ?

   使用一层api集成来自不同系统的数据,节省人力物力,如下图所示

anypoint Platform 简介

   主要包含

        Design Center:创建一些mule 项目,通过编辑文件内容快速设计和测试.发布API接口

       Exchange:提供RAML片段、定制包、视频、文档链接和其他资源

      Management Center

                Access Management:主要涉及一些用户,角色,权限,环境等

               API Manager:管理客户端,API 分组

               Runtime Manager:发布运行API

               Visualizer:可视化

              Monitoring:监控,查询

             Secrets Manager:管理SSL证书

MulsSoft 初体验

1.准备工作:

    注册账号

   下载最新anypoint Studio:https://www.mulesoft.com/lp/dl/studio

  备注:下载之前的版本anypoint Studio: https://www.mulesoft.com/lp/dl/studio/previous

2.在线使用Design Center开发

输入代码

#%RAML 1.0
title: hello, world
version: v1
description: Hello  world

types:
 greeting:
   properties:
     message: string

/hello:
     get:
       responses:
         200:
           body:
             application/json:
               type: greeting
               example:
                 {message: "你好,Mulesoft"}
         404:
           body:
             application/json:
               properties:
                 message: string
               example: |
                 {
                   "message" : "Request not found"
                 }
                 

3.使用anypoint 开发

 启动程序,打开浏览器输入:http://127.0.0.1:8081/hellomule

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
	xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd">

<http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" >
  <http:listener-connection host="127.0.0.1" port="8081" />
</http:listener-config>
<flow name="hello-muleFlow" >
  <http:listener doc:name="Listener"
                 config-ref="HTTP_Listener_config"
                 path="/hellomule"/>
  <set-payload value="Hello Mule!"
               doc:name="Set Payload"
               mimeType="text/plain"/>
  <logger level="INFO"
          doc:name="Logger"
          message="#[attributes.requestPath]"/>
</flow>
</mule>

觉得写的不错的,可以打赏下博主,后续更精彩,如果有任何问题可以留言,谢谢。

 

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

java斗罗

请作者健身

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值