Spring boot Spring Boot应用程序的org.apache.camel.component.http.HttpMethods的Maven依赖性是什么?
对于要添加到Spring boot项目中的Spring boot Spring Boot应用程序的org.apache.camel.component.http.HttpMethods的Maven依赖性是什么?,spring-boot,apache-camel,maven-dependency,Spring Boot,Apache Camel,Maven Dependency,对于要添加到Spring boot项目中的org.apache.camel.component.http.HttpMethods,我应该添加什么依赖项?我已经试过了,但是没有一个有效 https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient https://mvnrepository.com/artifact/org.apache.camel/camel-http https://mvnrepository.
org.apache.camel.component.http.HttpMethods
,我应该添加什么依赖项?我已经试过了,但是没有一个有效
https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
https://mvnrepository.com/artifact/org.apache.camel/camel-http
https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
另外,我找不到对Google搜索的依赖。
org.apache.camel.component.http.HttpMethods
可以在org.apache.camel:camel http
工件中找到
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http</artifactId>
<version>2.22.1</version>
</dependency>
我认为您应该将这些依赖项添加到您的项目中:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
<version>${camel.version}</version> <!-- the camel version -->
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http-starter</artifactId>
<version>${camel.version}</version> <!-- the camel version -->
</dependency>
org.apache.camel
驼形弹簧靴起动器
${camel.version}
org.apache.camel
骆驼http启动器
${camel.version}
添加依赖项时,Maven构建仍在后台运行。我的错误。这起作用了。
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
<version>${camel.version}</version> <!-- the camel version -->
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http-starter</artifactId>
<version>${camel.version}</version> <!-- the camel version -->
</dependency>