【发布时间】:2017-06-05 11:55:00
【问题描述】:
我将 Katharsis 从 2.7.0 升级到 2.8.2 我发现了以下问题。
Katharsis 无法发现没有空参数构造函数的存储库。 临时解决方案:为每个存储库添加空参数构造函数
-
Katharsis 无法发现异常映射器。 临时解决方案:在 KatharsisFeature 构造函数中添加以下代码。
this.addModule(new CoreModule("io.katharsis.example.jersey.domain", this.buildResourceFieldNameTransformer(objectMapper) ));
我通过调试源解决了这两个问题。但也许是不好的做法。
2.8.2 中配置 KatharsisFeature 的最佳做法是什么?
请参考 Katharsis 的例子: https://github.com/katharsis-project/katharsis-framework/tree/master/katharsis-examples/jersey-example
【问题讨论】:
标签: java rest json-api katharsis