实际上,我试图使用新版本5 (beta)的Jhipster来生成后端服务。
下面是生成器问题的答案: :
C:\dev\java\jh>jhipster server
Using JHipster version installed globally
Executing jhipster:server
Options:
? What is the base name of your application? jh
? What is your default Java package name? com.mycompany.myapp
? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
? Which *type* of authentication would you like to use? JWT authentication (stateless, with a token)
? Which *type* of database would you like to use? SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)
? Which *production* database would you like to use? MySQL
? Which *development* database would you like to use? H2 with disk-based persistence
? Do you want to use the Spring cache abstraction? Yes, with the Ehcache implementation (local cache, for a single node)
? Do you want to use Hibernate 2nd level cache? Yes
? Would you like to use Maven or Gradle for building the backend? Maven
? Which other technologies would you like to use? Reactive APIs, using Spring Webflux
? Would you like to enable internationalization support? No请注意,我选择了reactive 新特性,当我查看RestController级别的源代码时,没有发现Mono和Flux的任何用途。
我漏掉了什么吗?
谢谢你。
发布于 2018-04-04 18:58:35
是的,当您创建时,您将拥有该选项。而且您的类路径中也有Spring网络流量库。
发布于 2018-05-11 02:12:16
这让我头疼。
如果有人正在寻找反应性的杰普斯特,它目前正在重写。
它是在Jhipster@Beta5.0.0中添加的
反应支持
"New generator option to enable Spring Webflux support
Support for Spring Webflux in the Spring controller sub-generator"后来在 杰普斯特@Beta.5.0.1中删除了
We removed our reactive support in Spring Boot. This is going to be
completely re-written in a separate branch, and will be released later.
Reactive applications will be a new type of application (like we
already have monolith or microservice), which will be used only when
this technology makes sense.此外,(在过去一天内)在这支上进行积极的开发
https://stackoverflow.com/questions/49657822
复制相似问题