谷歌应用引擎中的jasckson库未包含在白名单中

时间:2017-09-12 11:32:32

标签: java maven google-app-engine

当我在我的代码中使用这些导入或使用任何类和方法时,我从intelli J IDE中收到此错误。

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;

 Class 'com.fasterxml.jackson.databind.ObjectMapper' is not included in App Engine JRE White List

这不会导致任何Maven构建错误,或者生成中的任何错误。但为什么IDE会标记错误。 App Engine JRE白名单中不包含“com.fasterxml.jackson.core.type.TypeReference”类

1 个答案:

答案 0 :(得分:-1)

这些导入不是Java应用程序编程接口(Java API)的一部分 它们是创建的库,为了您使用它们,您必须在Java构建路径库中下载并添加jar文件