我使用的是IDEA,很简单。

切换到project,如果下面的module版本是2.65,上面的jackson.core.xx小于2.65就会报old,如果高于2.65就会报不兼容。

所以调整成相同的即可

我去我的仓库把它调整成相同的了。就没有问题了。

之后又出现了这个玩意

java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

然后搜了各种还是没有解决,没办法,喊老大过来。老大给我丢了套pom,我把之前的那个fasterxm全删了

删除完之后,添加完老大给的pom

老大的pom

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <groupId>haoZhuoData</groupId>
  8. <artifactId>day1</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10.  
  11. <packaging>jar</packaging>
  12.  
  13. <properties>
  14.  
  15. <mysql.version>5.1.47</mysql.version>
  16.  
  17. <scala.version>2.11.8</scala.version>
  18. <scala.binary.version>2.11</scala.binary.version>
  19. <spark.version>2.3.1</spark.version>
  20.  
  21. </properties>
  22.  
  23. <dependencies>
  24. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
  25. <!--<dependency>
  26. <groupId>mysql</groupId>
  27. <artifactId>mysql-connector-java</artifactId>
  28. <version>8.0.15</version>
  29. </dependency>
  30. -->
  31. <!-- <dependency>
  32. <groupId>com.typesafe.play</groupId>
  33. <artifactId>play-json_2.10</artifactId>
  34. <version>2.4.0-M1</version>
  35. </dependency>
  36.  
  37. <dependency>
  38. <groupId>com.google.code.gson</groupId>
  39. <artifactId>gson</artifactId>
  40. <version>2.7</version>
  41. </dependency>-->
  42.  
  43. <!--scala依赖-->
  44. <!-- <dependency>
  45. <groupId>org.scala-lang</groupId>
  46. <artifactId>scala-library</artifactId>
  47. <version>${scala.version}</version>
  48. </dependency>-->
  49. <!--spark依赖-->
  50. <!--<dependency>
  51. <groupId>org.apache.spark</groupId>
  52. <artifactId>spark-streaming_2.11</artifactId>
  53. <version>${spark.version}</version>
  54. <exclusions>
  55. <exclusion>
  56. <groupId>com.fasterxml.jackson.core</groupId>
  57. <artifactId>jackson-annotations</artifactId>
  58. </exclusion>
  59. </exclusions>
  60. </dependency>
  61.  
  62. <dependency>
  63. <groupId>org.apache.spark</groupId>
  64. <artifactId>spark-sql_2.11</artifactId>
  65. <version>${spark.version}</version>
  66. <exclusions>
  67. <exclusion>
  68. <groupId>com.fasterxml.jackson.core</groupId>
  69. <artifactId>jackson-annotations</artifactId>
  70. </exclusion>
  71. </exclusions>
  72. </dependency>-->
  73.  
  74. <!-- <dependency>
  75. <groupId>org.scala-lang.modules</groupId>
  76. <artifactId>scala-xml_2.11</artifactId>
  77. <version>1.0.6</version>
  78. </dependency>-->
  79.  
  80. <!-- <dependency>
  81. <groupId>org.apache.spark</groupId>
  82. <artifactId>spark-streaming-flume_2.11</artifactId>
  83. <version>${spark.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.spark</groupId>
  87. <artifactId>spark-streaming-kafka-0-8_2.11</artifactId>
  88. <version>${spark.version}</version>
  89. </dependency>-->
  90.  
  91. <dependency>
  92. <groupId>com.alibaba</groupId>
  93. <artifactId>fastjson</artifactId>
  94. <version>1.2.4</version>
  95. </dependency>
  96.  
  97. <dependency>
  98. <groupId>mysql</groupId>
  99. <artifactId>mysql-connector-java</artifactId>
  100. <version>${mysql.version}</version>
  101. </dependency>
  102.  
  103. <dependency>
  104. <groupId>org.apache.spark</groupId>
  105. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  106. <version>${spark.version}</version>
  107. <scope>${main.scope}</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.apache.spark</groupId>
  111. <artifactId>spark-streaming_${scala.binary.version}</artifactId>
  112. <version>${spark.version}</version>
  113. <scope>${main.scope}</scope>
  114. </dependency>
  115.  
  116. <dependency>
  117. <groupId>org.scala-lang</groupId>
  118. <artifactId>scala-library</artifactId>
  119. <version>${scala.version}</version>
  120. <scope>${main.scope}</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.scala-lang</groupId>
  124. <artifactId>scala-reflect</artifactId>
  125. <version>${scala.version}</version>
  126. <scope>${main.scope}</scope>
  127. </dependency>
  128.  
  129. </dependencies>
  130.  
  131. <build>
  132. <plugins>
  133. <!--scala编译插件-->
  134. <plugin>
  135. <groupId>org.scala-tools</groupId>
  136. <artifactId>maven-scala-plugin</artifactId>
  137. <version>2.15.2</version>
  138. <executions>
  139. <execution>
  140. <goals>
  141. <goal>compile</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. <!-- java 编译插件 -->
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-compiler-plugin</artifactId>
  150. <version>3.2</version>
  151. <configuration>
  152. <source>1.8</source>
  153. <target>1.8</target>
  154. <encoding>UTF-8</encoding>
  155. </configuration>
  156. </plugin>
  157. </plugins>
  158. </build>
  159.  
  160. </project>

  然后在

library添加上了2.65

抱着试一试的心态成功了

Jackson version is too old 2.xx的更多相关文章

  1. Jackson 通过自定义注解来控制json key的格式

    Jackson 通过自定义注解来控制json key的格式 最近我这边有一个需求就是需要把Bean中的某一些特殊字段的值进行替换.而这个替换过程是需要依赖一个第三方的dubbo服务的.为了使得这个转换 ...

  2. Jackson的使用

    Jackson框架是基于Java平台的一套数据处理工具,被称为"最好的JavaJson解析器". Jackson框架包含了3个核心库:streaming,databind,anno ...

  3. Jackson xml json

    public class XMLTest { private static XmlMapper xmlMapper = new XmlMapper(); private static ObjectMa ...

  4. Jackson 转换JSON,SpringMVC ajax 输出,当值为null或者空不输出字段@JsonInclude

    当我们提供接口的时候, Ajax 返回的时候,当对象在转换 JSON (序列化)的时候,值为null或者为“” 的字段还是输出来了.看上去不优雅. 现在我叙述三种方式来控制这种情况. 注解的方式( @ ...

  5. spring-boot 使用 jackson 出错(五)

    环境 jdk 6 tomcat 6.0.53 sts 4.4.2 maven 3.2.5 原因 spring boot 1.5.22.RELEASE 默认使用的 jackson 的版本是 2.8.x, ...

  6. fastjson转jackson

    使用fastjson有个内存oom的问题,我们应该尽量使用jackjson,为什么呢?因为fastjson会引发一个oom,很潜在的危险,虽然jackjson的api真的非常好用,对于解析json串来 ...

  7. SpringMVC数据绑定全面示例(复杂对象,数组等)

    点击链接查询原文 http://www.xdemo.org/springmvc-data-bind/ 已经使用SpringMVC开发了几个项目,平时也有不少朋友问我数据怎么传输,怎么绑定之类的话题,今 ...

  8. Spring MVC 的 Java Config ( 非 XML ) 配置方式

    索引: 开源Spring解决方案--lm.solution 参看代码 GitHub: solution/pom.xml web/pom.xml web.xml WebInitializer.java ...

  9. Shiro集成Spring

    本篇博客主要讲述的是两者的集成.不涉及到各自的详细细节和功能. 因为官方给出的文档不够具体,对新手而言通过官方文档还不可以非常快的搭建出SpringShiro的webproject.本博客将通过实际的 ...

随机推荐

  1. javax.servlet.ServletException: Could not resolve view with name 'order/list' in servlet with name 'dispatcherServlet'

    javax.servlet.ServletException: Could not resolve view with name 'order/list' in servlet with name ' ...

  2. canves做的时钟目前已经开源

    canves做的时钟目前已经开源 git地址: https://github.com/jidanji/canves-clock/tree/1.0.1 项目截图 时流过的时间变得有颜色,其他的没有颜色.

  3. 高级Java开发人员最常访问的几个网站

    这是高级Java开发人员最常访问的几个网站. 这些网站提供新闻,一般问题或面试问题的答案,精彩的讲座等.质量是优秀网站的关键因素,这此网站都有较高的质量内容.下面逐一介绍: 1. Stackoverf ...

  4. 一起学Spring之三种注入方式及集合类型注入

    本文主要讲解Spring开发中三种不同的注入方式,以及集合数据类型的注入,仅供学习分享使用,如有不足之处,还请指正. 概述 Spring的注入方式一共有三种,如下所示: 通过set属性进行注入,即通过 ...

  5. Windows10安装Elasticsearch IK分词插件

    安装插件 cmd切换到Elasticsearch安装目录下 C:\Users\Administrator>D: D:\>cd D:\Program Files\Elastic\Elasti ...

  6. 45.QT-连接外部dll,lib库导入问题

    dll库问题 查看MZ_Card.dll对应的文档手册,如下图所示: 所以代码写为: typedef BOOL (*Fun)(BOOL IsOpenComm,unsigned long Port, u ...

  7. 请确保二进制储存在指定的路径中,或者调试他以检查该二进制或相关的DLL文件

    出现问题原因: 编译socket.dll时,用到了openssl库. 使用libeay32.lib.ssleay32.lib生成socket.dll,就会报这样的错误 解决办法: 使用libeay32 ...

  8. Test111

    这是一个测试 以下是截图 以下是代码标记       @@@code [XmlRpcMethod("blogger.deletePost")] haaa ggg @@# publi ...

  9. 47-准备 Overlay 网络实验环境

    为支持容器跨主机通信,Docker 提供了 overlay driver,使用户可以创建基于 VxLAN 的 overlay 网络.VxLAN 可将二层数据封装到 UDP 进行传输,VxLAN 提供与 ...

  10. mysqld_safe error: log-error set to '/data/log/mysqld.log', however file don't exists. Create writable for user 'mysql'.The server quit without updating PID file (/data/mysql/mysqld.pid)

    [oot@cent65 bin]# service mysqld startStarting MySQL.2019-10-28T15:56:47.786960Z mysqld_safe error: ...