【问题标题】:How to setup repository decorators in katharsis如何在 kathasis 中设置存储库装饰器
【发布时间】:2017-03-21 09:53:52
【问题描述】:

我正在尝试在 kathasis(版本 2.8.2)中使用存储库装饰器,但到目前为止还没有工作。我扩展了ResourceRepositoryDecoratorBase,实现了RepositoryDecoratorFactory,并通过SimpleModuleKatharsisInvokerBuilder 实例提供了它们。

katharisis 选择了模块及其所有内容,但是当我发出 HTTP 请求时,装饰器似乎不存在(没有日志跟踪),并且底层存储库接收到请求,并正常工作。

在调试会话中,我发现方法 ModuleRegistry.applyRepositoryRegistration() 中的存储库列表是空的,因此显然此时没有什么可装饰的(但这很奇怪,因为常规存储库正在工作)。

我错过了什么吗?

【问题讨论】:

    标签: java rest katharsis


    【解决方案1】:

    您可以在 kathasis github 上尝试 posting the issue

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-16
      • 2016-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-26
      • 1970-01-01
      • 2019-09-05
      相关资源
      最近更新 更多