【问题标题】:How to use RouterFunction of Spring in Jhipster如何在 Jhipster 中使用 Spring 的 RouterFunction
【发布时间】:2021-10-24 17:18:05
【问题描述】:

在简单的项目(spring-boot-starter-web)中,我只是添加 (@Bean) RouterFunction ...它对我有用

但在 jhipster 7 生成的项目中,我无法使用 RouterFunction ,似乎 RouterFunction 被某些东西阻止了。

我试过删除 spring ,security ,webFilter,...但仍然不能

【问题讨论】:

    标签: spring-boot jhipster


    【解决方案1】:

    我解决了这个问题:

    问题在于,在 ClientForwardController.forward() 中,它在 FunctionController 之前阻止了所有 Get 请求和 (forward:/)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-12
      • 2018-09-30
      • 2017-11-30
      • 2015-05-19
      • 2021-12-29
      • 2018-04-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多