其他分享
首页 > 其他分享> > apache came 初识

apache came 初识

作者:互联网

  1. 简介
    Camel框架的核心是一个路由引擎,或者更确切地说是一个路由引擎构建器。它允许您定义自己的路由规则,决定从哪个源接收消息,并确定如何处理这些消息并将其发送到其他目标。
    参考:https://www.jianshu.com/p/68aba8d09a89

  2. 实践
    file to file

pom:


4.0.0

org.springframework.boot
spring-boot-starter-parent
2.6.6


com.example
camel-demo
0.0.1-SNAPSHOT
camel-demo
Camel Demo project for Spring Boot

<java.version>1.8</java.version>



org.springframework.boot
spring-boot-starter-actuator


org.springframework.boot
spring-boot-starter-web


org.apache.camel.springboot
camel-spring-boot-starter
3.10.0

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<scope>test</scope>
	</dependency>
</dependencies>

<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
		</plugin>
	</plugins>
</build>

test类:
package com.example.cameldemo.test;

import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;

/**

}

标签:camel,spring,boot,springframework,初识,apache,org,came
来源: https://www.cnblogs.com/sw-123/p/16119256.html