cannot access org.apache.http.annotation.Immutable_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > cannot access org.apache.http.annotation.Immutable

cannot access org.apache.http.annotation.Immutable

 2017/11/2 12:11:31  shuhucy  程序员俱乐部  我要评论(0)
  • 摘要:现象:[ERROR]diagnostic:error:cannotaccessorg.apache.http.annotation.Immutableclassfilefororg.apache.http.annotation.Immutablenotfound分析:预计是兼容性问题具体见:https://github.com/spring-projects/spring-boot/issues/6662处理:<dependency><groupId>org
  • 标签:Access can not Annotation Apache HTTP
现象:
[ERROR] diagnostic: error: cannot access org.apache.http.annotation.Immutable
  class file for org.apache.http.annotation.Immutable not found

分析:
预计是兼容性问题
具体见:https://github.com/spring-projects/spring-boot/issues/6662

处理:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.4</version>
</dependency>
发表评论
用户名: 匿名