org.apache.camel.component.http.HttpMethods 对于 Spring 启动应用程序的 Maven 依赖项是什么?
What is the Maven dependency for org.apache.camel.component.http.HttpMethods for a Spring Boot app?
要将 org.apache.camel.component.http.HttpMethods
添加到我的 Spring 引导项目中,我应该添加什么依赖项?我已经尝试过这些,但其中 none 似乎有效...
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>
我不确定你为什么说它不存在:
$ zipinfo -1 camel-http-2.22.1.jar | grep HttpMethods
org/apache/camel/component/http/HttpMethods.class
我认为您应该将这些依赖项添加到您的项目中:
<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.component.http.HttpMethods
添加到我的 Spring 引导项目中,我应该添加什么依赖项?我已经尝试过这些,但其中 none 似乎有效...
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>
我不确定你为什么说它不存在:
$ zipinfo -1 camel-http-2.22.1.jar | grep HttpMethods
org/apache/camel/component/http/HttpMethods.class
我认为您应该将这些依赖项添加到您的项目中:
<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>