JHipster 5:源代码中没有找到反应API

时间:2018-04-04 18:17:51

标签: spring-boot jhipster

我实际上是尝试使用Jhipster的新版本5(beta)生成后端服务。

低于我对生成器问题的回答:

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

请注意,我选择了反应式API 新功能,当我查看RestController级别的源代码时,我没有发现 Mono 的任何用途和 Flux

我错过了什么吗?

Merci beaucoup。

1 个答案:

答案 0 :(得分:2)

是的,您可以在创建Spring Controller时使用该选项。你的类路径中确实有Spring Webflux库。