[英]class file for com.fasterxml.jackson.core.JsonParseException not found
My project use Spring MVC for front End and EJB for back-end. 我的项目将Spring MVC用于前端,将EJB用于后端。 when i use jackson to serialize and deserialize json string in controller level bellow code working properly but service layer it gives an error " class file for com.fasterxml.jackson.core.JsonParseException not found "
当我使用杰克逊序列化和反序列化控制器级别的波纹管代码中的json字符串正常工作但服务层出现错误“ com.fasterxml.jackson.core.JsonParseException的类文件未找到 ”
ObjectMapper mapper = new ObjectMapper();
Object convertedObject = mapper.readValue(jsonString, class);
and my module pom file include dependency. 和我的模块pom文件包含依赖项。
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.3.0</version>
</dependency>
this error comes wth mapper
after creating object. 创建对象后,
mapper
出现此错误。
Error: Error:(247, 67) java: cannot access com.fasterxml.jackson.core.JsonParseException class file for com.fasterxml.jackson.core.JsonParseException not found
错误:
Error:(247, 67) java: cannot access com.fasterxml.jackson.core.JsonParseException class file for com.fasterxml.jackson.core.JsonParseException not found
You also need to include 您还需要包括
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.3.2</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.