如何在 Jhipster 中禁用 authenticationType?

问题描述

我想没有authenticationType,在最终的微服务中,如何在JDL中实现?

如何定义不进行身份验证?

application {
  config {
    baseName AweSEOmApp,applicationType microservice,packageName com.example,authenticationType jwt,prodDatabaseType postgresql
  }
  entities *
  service * with serviceClass
}

entity Cars {
   name String 
}

解决方法

使用 JDL 或问题是不可能的。

您必须在微服务和网关的 SecurityConfiguration 类中手动修改生成的代码。

参见 this question 示例。

或者您可以提交类似于“无数据库”选项的功能请求并提议贡献它。