# mule-spring-boot-starter
Mule CE is an open source integration tool. Mule CE applications are normally run inside a Mule runtime.
With mule-spring-boot-starter, you can run Mule CE embedded in a Spring Boot application. This allows Mule
developers to quickly prototype and/or deploy Mule applications with having to download Mule runtime, create
A Maven artifact and push the artifact to the Mule runtime. This project will allow developers to build the
Mule application in much the same manner as other Spring Boot applications.
## Maven Dependency:
To get started simply include the dependency in your pom file:
```
<dependency>
<groupId>net.taptech</groupId>
<artifactId>mule-spring-boot-starter</artifactId>
<version>1.5.9-SNAPSHOT</version>
</dependency>
```
## Add repositories:
```
<repositories>
<repository>
<id>Central</id>
<name>Central</name>
<url>http://repo1.maven.org/maven2/</url>
<layout>default</layout>
</repository>
<repository>
<id>mulesoft-releases</id>
<name>MuleSoft Repository</name>
<url>http://repository.mulesoft.org/releases/</url>
<layout>default</layout>
</repository>
<repository>
<id>mulesoft-snapshots</id>
<name>MuleSoft Snapshot Repository</name>
<url>http://repository.mulesoft.org/snapshots/</url>
<layout>default</layout>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones Repository</name>
<url>http://repo.spring.io/milestone</url>
<layout>default</layout>
</repository>
<repository>
<id>spock-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
```
## Add mule modules and dependencies as needed.
Ex.
```
<dependency>
<groupId>org.mule.transports</groupId>
<artifactId>mule-transport-http</artifactId>
<version>${mule.version}</version>
</dependency>
```
## Create a mule config file:
Make sure this file is in the artifact classpath. Create an application property called
mule.config.files. Add a comma separated list of mule config files.
```
mule.config.files=mule-config.xml
```
## Add annotation to your Spring Boot application entry point.
@EnableMuleConfiguration
```
@EnableMuleConfiguration
@SpringBootApplication
public class DemoMuleSpringBootApplication {
private static final Logger logger = LoggerFactory.getLogger(DemoMuleSpringBootApplication.class);
@Autowired
private ApplicationContext context;
public static void main(String... args) {
logger.info("Starting SpringApplication...");
SpringApplication app = new SpringApplication(DemoMuleSpringBootApplication.class);
app.setBannerMode(Banner.Mode.CONSOLE);
app.setWebEnvironment(false);
app.run();
logger.info("SpringApplication has started...");
}
}
```
The demo project can be viewed [here.](https://github.com/glawson6/demo-mule-spring-boot)
没有合适的资源?快使用搜索试试~ 我知道了~
mule-spring-boot-starter
共9个文件
java:2个
properties:1个
xml:1个
需积分: 10 4 下载量 54 浏览量
2021-05-14
18:27:02
上传
评论
收藏 13KB ZIP 举报
温馨提示
ule子弹簧启动启动器 Mule CE是一个开源集成工具。 Mule CE应用程序通常在Mule运行时内部运行。 使用mule-spring-boot-starter,您可以运行Spring Boot应用程序中嵌入的Mule CE。 这使Mule开发人员无需下载Mule运行时,创建Maven工件并将工件推送到Mule运行时即可快速原型化和/或部署Mule应用程序。 该项目将允许开发人员以与其他Spring Boot应用程序几乎相同的方式构建Mule应用程序。 Maven依赖关系: 要开始使用,只需将依赖项包含在pom文件中: <dependency> <groupId>net.taptech</groupId> <artifactId>mule-spring-boot-starter</artifactId> <version>1.5.9-SNAPSHOT</version
资源详情
资源评论
资源推荐
收起资源包目录
mule-spring-boot-starter-master.zip (9个子文件)
mule-spring-boot-starter-master
.gitignore 135B
.mvn
wrapper
maven-wrapper.properties 109B
src
main
java
net
taptech
autoconfiguration
EnableMuleConfiguration.java 555B
MuleContextStartupConfiguration.java 6KB
mvnw 7KB
pom.xml 13KB
mvnw.cmd 5KB
README.md 3KB
dev-notes.txt 173B
共 9 条
- 1
Untournant
- 粉丝: 50
- 资源: 4587
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0