1.创立一个Spring Boot项目
新建项目
选择依赖jar包:增加camel及web的依赖
图-2
项目信息确认
2.在POM文件中增加其余依赖
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.4.3
com.liwei
camel-file
0.0.1-SNAPSHOT
camel-file
Demo project for Spring Boot
1.8
org.springframework.boot
spring-boot-starter-web
org.apache.camel
camel-spring-boot-starter
2.23.2
org.apache.httpcomponents
httpcore
4.4.9
org.apache.camel
camel-http4
2.23.2
org.apache.httpcomponents
httpmime
4.5.5
commons-io
commons-io
2.5
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-maven-plugin