【发布时间】:2018-04-16 12:35:46
【问题描述】:
我正在尝试使用DSL-JSON 运行其中一个示例。
我收到以下错误:
Exception in thread "main" java.io.IOException: Unable to serialize provided object. Failed to find serializer for: class dsl.test.Example$Model
at com.dslplatform.json.DslJson.serialize(DslJson.java:2718)
at dsl.test.Example.main(Example.java:231)
我只添加了对 pom.xml 的依赖:
<dependency>
<groupId>com.dslplatform</groupId>
<artifactId>dsl-json</artifactId>
<version>1.7.3</version>
</dependency>
缺少什么?
【问题讨论】:
标签: java json-deserialization json-serialization