嗨,我正在做一些 GwtTestCase 测试。我想在测试中使用 Jackson ObjectMapper,但是出现以下错误
[ERROR] Line 48: No source code is available for type org.codehaus.jackson.map.ObjectMapper; did you forget to inherit a required module?
我知道我需要继承杰克逊的模块,但是我不知道如何实现它。我需要为杰克逊创建模块吗?如何?
嗨,我正在做一些 GwtTestCase 测试。我想在测试中使用 Jackson ObjectMapper,但是出现以下错误
[ERROR] Line 48: No source code is available for type org.codehaus.jackson.map.ObjectMapper; did you forget to inherit a required module?
我知道我需要继承杰克逊的模块,但是我不知道如何实现它。我需要为杰克逊创建模块吗?如何?
你不能像这样使用杰克逊。
存在与 Jackson 2 注释兼容的 GWT JSON 序列化程序:https ://github.com/nmorel/gwt-jackson